Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert unintentional changes #317

Merged
merged 1 commit into from
Dec 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions crates/rbuilder/src/live_builder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u64> = None;
info!("Builder block list size: {}", self.blocklist.len(),);
info!(
"Builder coinbase address: {:?}",
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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(),
Expand Down
Loading