Skip to content

Commit 480ca5a

Browse files
committed
logs sim env errors
1 parent 8220b4f commit 480ca5a

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

crates/bundle/src/send/driver.rs

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::send::SignetEthBundle;
2-
use alloy::{consensus::{Transaction, transaction::SignerRecoverable}, hex, primitives::U256};
2+
use alloy::{consensus::Transaction, hex, primitives::U256};
33
use signet_evm::{DriveBundleResult, EvmErrored, EvmNeedsTx, SignetInspector, SignetLayered};
44
use signet_types::{AggregateFills, AggregateOrders, MarketError, SignedPermitError};
55
use std::borrow::Cow;
@@ -224,7 +224,6 @@ where
224224
&mut self,
225225
mut trevm: EvmNeedsTx<RuDb, SignetEthBundleInsp<RuInsp>>,
226226
) -> DriveBundleResult<Self, RuDb, SignetEthBundleInsp<RuInsp>> {
227-
let block_number = trevm.block_number();
228227
let bundle = &self.bundle.bundle;
229228
// -- STATELESS CHECKS --
230229

@@ -263,6 +262,8 @@ where
263262
// changes into the host_evm's state. If any reverts, we error out the
264263
// simulation.
265264
for tx in host_txs.into_iter() {
265+
let _span = tracing::debug_span!("host_txn loop", tx_hash = %tx.hash()).entered();
266+
266267
self.output.host_evm = Some(trevm_try!(
267268
self.output
268269
.host_evm
@@ -298,15 +299,7 @@ where
298299
Ok(htrevm.accept_state())
299300
})
300301
.map_err(|err| {
301-
let addr = tx.recover_signer().unwrap_or_default();
302-
let wanted_nonce = trevm.try_read_nonce(addr);
303-
let got_nonce = tx.nonce();
304-
debug!(
305-
host_tx = ?tx,
306-
wanted_nonce = ?wanted_nonce,
307-
got_nonce = ?got_nonce,
308-
);
309-
error!(host_tx = ?tx, ?block_number, err = %err.error(), err_dbg = ?err.error(), "error while running host transaction");
302+
error!(host_tx_nonce = ?tx.nonce(), host_tx_hash = ?tx.hash(), err = %err.error(), err_dbg = ?err.error(), "error while running host transaction");
310303
SignetEthBundleError::HostSimulation("host simulation error")
311304
}),
312305
trevm

0 commit comments

Comments
 (0)