Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions crates/bundle/src/send/driver.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion crates/sim/src/env/sim_env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down