Skip to content

Commit

Permalink
more debug prints around block building
Browse files Browse the repository at this point in the history
  • Loading branch information
Keszey Dániel authored and Keszey Dániel committed Sep 18, 2024
1 parent b3abbcf commit dafb1b5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/rbuilder/src/live_builder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ impl<DB: Database + Clone + 'static, BuilderSourceType: SlotSource>

let watchdog_sender = spawn_watchdog_thread(self.watchdog_timeout)?;

println!("Dani debug: Waiting for payload_attributes events");
while let Some(payload) = payload_events_channel.recv().await {
println!("Dani debug: payload_attributes event received");
if self.blocklist.contains(&payload.fee_recipient()) {
warn!(
slot = payload.slot(),
Expand Down Expand Up @@ -161,6 +163,7 @@ impl<DB: Database + Clone + 'static, BuilderSourceType: SlotSource>
continue;
};

println!("Dani debug: gather parent header");
let parent_header = {
// @Nicer
let parent_block = payload.parent_block_hash();
Expand All @@ -175,6 +178,7 @@ impl<DB: Database + Clone + 'static, BuilderSourceType: SlotSource>
}
};

println!("Dani debug: gather blopvk hashes");
{
let provider_factory = self.provider_factory.clone();
let block = payload.block();
Expand Down Expand Up @@ -204,6 +208,8 @@ impl<DB: Database + Clone + 'static, BuilderSourceType: SlotSource>

inc_active_slots();


println!("Dani debug: build block context");
let block_ctx = BlockBuildingContext::from_attributes(
payload.payload_attributes_event.clone(),
&parent_header,
Expand All @@ -215,6 +221,7 @@ impl<DB: Database + Clone + 'static, BuilderSourceType: SlotSource>
None,
);

println!("Dani debug: start building");
builder_pool.start_block_building(
payload,
block_ctx,
Expand Down

0 comments on commit dafb1b5

Please sign in to comment.