From 24330222cb32a323f36e11add3e2b65a7b197caa Mon Sep 17 00:00:00 2001 From: Daniel Xifra Date: Mon, 30 Dec 2024 14:54:15 -0300 Subject: [PATCH] revert --- crates/rbuilder/src/live_builder/mod.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/crates/rbuilder/src/live_builder/mod.rs b/crates/rbuilder/src/live_builder/mod.rs index 6725e8c7..ff6ede4e 100644 --- a/crates/rbuilder/src/live_builder/mod.rs +++ b/crates/rbuilder/src/live_builder/mod.rs @@ -135,8 +135,6 @@ where } pub async fn run(self) -> eyre::Result<()> { - // We keep the last block to avoid going back in time since we are now very robust about reorgs or this kind of behavior. - let mut last_processed_block: Option = None; info!("Builder block list size: {}", self.blocklist.len(),); info!( "Builder coinbase address: {:?}", @@ -205,12 +203,6 @@ where ); continue; } - // Allow only increasing blocks - if last_processed_block - .is_some_and(|last_processed_block| payload.block() <= last_processed_block) - { - continue; - } let current_time = OffsetDateTime::now_utc(); // see if we can get parent header in a reasonable time let time_to_slot = payload.timestamp() - current_time; @@ -257,7 +249,6 @@ where ); inc_active_slots(); - last_processed_block = Some(payload.block()); if let Some(block_ctx) = BlockBuildingContext::from_attributes( payload.payload_attributes_event.clone(),