|
1 | 1 | use crate::send::SignetEthBundle; |
2 | | -use alloy::{consensus::{Transaction, transaction::SignerRecoverable}, hex, primitives::U256}; |
| 2 | +use alloy::{consensus::Transaction, hex, primitives::U256}; |
3 | 3 | use signet_evm::{DriveBundleResult, EvmErrored, EvmNeedsTx, SignetInspector, SignetLayered}; |
4 | 4 | use signet_types::{AggregateFills, AggregateOrders, MarketError, SignedPermitError}; |
5 | 5 | use std::borrow::Cow; |
@@ -224,7 +224,6 @@ where |
224 | 224 | &mut self, |
225 | 225 | mut trevm: EvmNeedsTx<RuDb, SignetEthBundleInsp<RuInsp>>, |
226 | 226 | ) -> DriveBundleResult<Self, RuDb, SignetEthBundleInsp<RuInsp>> { |
227 | | - let block_number = trevm.block_number(); |
228 | 227 | let bundle = &self.bundle.bundle; |
229 | 228 | // -- STATELESS CHECKS -- |
230 | 229 |
|
@@ -263,6 +262,8 @@ where |
263 | 262 | // changes into the host_evm's state. If any reverts, we error out the |
264 | 263 | // simulation. |
265 | 264 | for tx in host_txs.into_iter() { |
| 265 | + let _span = tracing::debug_span!("host_txn loop", tx_hash = %tx.hash()).entered(); |
| 266 | + |
266 | 267 | self.output.host_evm = Some(trevm_try!( |
267 | 268 | self.output |
268 | 269 | .host_evm |
@@ -298,15 +299,7 @@ where |
298 | 299 | Ok(htrevm.accept_state()) |
299 | 300 | }) |
300 | 301 | .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"); |
310 | 303 | SignetEthBundleError::HostSimulation("host simulation error") |
311 | 304 | }), |
312 | 305 | trevm |
|
0 commit comments