diff --git a/crates/bundle/src/send/driver.rs b/crates/bundle/src/send/driver.rs index f220c30..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::{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; @@ -262,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 @@ -297,7 +299,7 @@ where Ok(htrevm.accept_state()) }) .map_err(|err| { - error!(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 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