From 7ce3e76d7b5926f263082b374e8ad61d9a604bab Mon Sep 17 00:00:00 2001 From: dylan Date: Fri, 21 Nov 2025 12:24:37 -0700 Subject: [PATCH 1/4] log: adds more logging to sim round error for debugging --- crates/sim/src/env/sim_env.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/sim/src/env/sim_env.rs b/crates/sim/src/env/sim_env.rs index 8c3269a..a4399da 100644 --- a/crates/sim/src/env/sim_env.rs +++ b/crates/sim/src/env/sim_env.rs @@ -306,7 +306,11 @@ where return; } Err(e) => { - trace!(?identifier, %e, "Simulation failed"); + let host_block_num = this_ref.host.block().number; + let host_env_block_num = this_ref.host_env().block().number; + let ru_block_num = this_ref.rollup.block().number; + let ru_env_block_num = this_ref.rollup_env().block().number; + trace!(?identifier, %e, %host_block_num, %host_env_block_num, %ru_block_num, %ru_env_block_num, "Simulation failed"); } }; // fall through applies to all errors, occurs if From 27b2e0a44736cae8aa8e98bd14fcff1e01cafb07 Mon Sep 17 00:00:00 2001 From: dylan Date: Mon, 24 Nov 2025 14:36:07 -0700 Subject: [PATCH 2/4] add moar logs --- crates/bundle/src/send/driver.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/crates/bundle/src/send/driver.rs b/crates/bundle/src/send/driver.rs index f220c30..1720c13 100644 --- a/crates/bundle/src/send/driver.rs +++ b/crates/bundle/src/send/driver.rs @@ -1,5 +1,5 @@ use crate::send::SignetEthBundle; -use alloy::{hex, primitives::U256}; +use alloy::{consensus::{Transaction, transaction::SignerRecoverable}, hex, primitives::U256}; use signet_evm::{DriveBundleResult, EvmErrored, EvmNeedsTx, SignetInspector, SignetLayered}; use signet_types::{AggregateFills, AggregateOrders, MarketError, SignedPermitError}; use std::borrow::Cow; @@ -224,6 +224,7 @@ where &mut self, mut trevm: EvmNeedsTx>, ) -> DriveBundleResult> { + let block_number = trevm.block_number(); let bundle = &self.bundle.bundle; // -- STATELESS CHECKS -- @@ -297,7 +298,15 @@ where Ok(htrevm.accept_state()) }) .map_err(|err| { - error!(err = %err.error(), err_dbg = ?err.error(), "error while running host transaction"); + let addr = tx.recover_signer().unwrap_or_default(); + let watned_nonce = trevm.try_read_nonce(addr); + let got_nonce = tx.nonce(); + debug!( + host_tx = ?tx, + wanted_nonce = ?watned_nonce, + got_nonce = ?got_nonce, + ); + error!(host_tx = ?tx, ?block_number, err = %err.error(), err_dbg = ?err.error(), "error while running host transaction"); SignetEthBundleError::HostSimulation("host simulation error") }), trevm From 8220b4f1d0449270e07a7d3cca167837b950f25a Mon Sep 17 00:00:00 2001 From: dylan Date: Mon, 24 Nov 2025 15:41:41 -0700 Subject: [PATCH 3/4] moar --- crates/bundle/src/send/driver.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bundle/src/send/driver.rs b/crates/bundle/src/send/driver.rs index 1720c13..9ef8523 100644 --- a/crates/bundle/src/send/driver.rs +++ b/crates/bundle/src/send/driver.rs @@ -299,11 +299,11 @@ where }) .map_err(|err| { let addr = tx.recover_signer().unwrap_or_default(); - let watned_nonce = trevm.try_read_nonce(addr); + let wanted_nonce = trevm.try_read_nonce(addr); let got_nonce = tx.nonce(); debug!( host_tx = ?tx, - wanted_nonce = ?watned_nonce, + wanted_nonce = ?wanted_nonce, got_nonce = ?got_nonce, ); error!(host_tx = ?tx, ?block_number, err = %err.error(), err_dbg = ?err.error(), "error while running host transaction"); From 480ca5aca4ba3989f8764fce0b1d60ed6f504cb0 Mon Sep 17 00:00:00 2001 From: dylan Date: Mon, 24 Nov 2025 23:02:43 -0700 Subject: [PATCH 4/4] logs sim env errors --- crates/bundle/src/send/driver.rs | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/crates/bundle/src/send/driver.rs b/crates/bundle/src/send/driver.rs index 9ef8523..4a31bf2 100644 --- a/crates/bundle/src/send/driver.rs +++ b/crates/bundle/src/send/driver.rs @@ -1,5 +1,5 @@ use crate::send::SignetEthBundle; -use alloy::{consensus::{Transaction, transaction::SignerRecoverable}, hex, primitives::U256}; +use alloy::{consensus::Transaction, hex, primitives::U256}; use signet_evm::{DriveBundleResult, EvmErrored, EvmNeedsTx, SignetInspector, SignetLayered}; use signet_types::{AggregateFills, AggregateOrders, MarketError, SignedPermitError}; use std::borrow::Cow; @@ -224,7 +224,6 @@ where &mut self, mut trevm: EvmNeedsTx>, ) -> DriveBundleResult> { - let block_number = trevm.block_number(); let bundle = &self.bundle.bundle; // -- STATELESS CHECKS -- @@ -263,6 +262,8 @@ where // changes into the host_evm's state. If any reverts, we error out the // simulation. for tx in host_txs.into_iter() { + let _span = tracing::debug_span!("host_txn loop", tx_hash = %tx.hash()).entered(); + self.output.host_evm = Some(trevm_try!( self.output .host_evm @@ -298,15 +299,7 @@ where Ok(htrevm.accept_state()) }) .map_err(|err| { - let addr = tx.recover_signer().unwrap_or_default(); - let wanted_nonce = trevm.try_read_nonce(addr); - let got_nonce = tx.nonce(); - debug!( - host_tx = ?tx, - wanted_nonce = ?wanted_nonce, - got_nonce = ?got_nonce, - ); - error!(host_tx = ?tx, ?block_number, err = %err.error(), err_dbg = ?err.error(), "error while running host transaction"); + error!(host_tx_nonce = ?tx.nonce(), host_tx_hash = ?tx.hash(), err = %err.error(), err_dbg = ?err.error(), "error while running host transaction"); SignetEthBundleError::HostSimulation("host simulation error") }), trevm