Skip to content

Commit

Permalink
small debug logging improvents
Browse files Browse the repository at this point in the history
  • Loading branch information
Brechtpd committed Oct 18, 2024
1 parent 7396584 commit db080d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions crates/rbuilder/src/building/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -460,16 +460,14 @@ impl<Tracer: SimulationTracer> PartialBlock<Tracer> {
ctx: &BlockBuildingContext,
state: &mut BlockState,
) -> Result<Result<ExecutionResult, ExecutionError>, CriticalCommitOrderError> {
println!("commit_order 2");
println!("commit_order: {:?}", order.order);
if ctx.builder_signer.is_none() && !order.sim_value.paid_kickbacks.is_empty() {
// Return here to avoid wasting time on a call to fork.commit_order that 99% will fail
return Ok(Err(ExecutionError::OrderError(OrderErr::Bundle(
BundleErr::NoSigner,
))));
}

println!("commit_order 2 b");

let mut fork = PartialBlockFork::new(state).with_tracer(&mut self.tracer);
let rollback = fork.rollback_point();
let exec_result = fork.commit_order(
Expand Down
2 changes: 1 addition & 1 deletion crates/rbuilder/src/building/sim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ impl<DB: Database> SimTree<DB> {
match onchain_nonce.cmp(&nonce.nonce) {
Ordering::Equal => {
// nonce, valid
println!("nonce value");
println!("nonce ok");
onchain_nonces_incremented.insert(nonce.address);
continue;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ pub async fn subscribe_to_txpool_with_blobs(
while let Some(tx_hash) = stream.next().await {
println!("Dani debug: Some txn arrived on {:?}", config.ipc_path);

// TODO: Skip L1 transactions for now because circular
if config.ipc_path.to_str().unwrap() == "/tmp/reth.ipc" {
println!("skipping!");
continue;
Expand Down

0 comments on commit db080d6

Please sign in to comment.