Skip to content

Commit

Permalink
Revert unintentional changes (#317)
Browse files Browse the repository at this point in the history
## 📝 Summary

#286 included some changes by
mistake.
These changes are still under consideration in
#284.
We will wait until we have more info.

## 💡 Motivation and Context

"Active slots" metric was lower than usual.

---

## ✅ I have completed the following steps:

* [X] Run `make lint`
* [X] Run `make test`
* [ ] Added tests (if applicable)
  • Loading branch information
ZanCorDX authored Dec 31, 2024
1 parent 5bed43c commit 821a88c
Showing 1 changed file with 0 additions and 9 deletions.
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

0 comments on commit 821a88c

Please sign in to comment.