Skip to content

Commit 0bf3609

Browse files
committed
chore: fix formatting
1 parent 6ea5e78 commit 0bf3609

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

crates/node/src/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use crate::tracing_ext::RecordDurationOnDrop;
12
use crate::{config::EvolvePayloadBuilderConfig, executor::EvEvmConfig};
23
use alloy_consensus::transaction::{Transaction, TxHashRef};
34
use alloy_primitives::Address;
@@ -15,7 +16,6 @@ use reth_primitives_traits::SealedBlock;
1516
use reth_provider::{HeaderProvider, StateProviderFactory};
1617
use reth_revm::{database::StateProviderDatabase, State};
1718
use std::sync::Arc;
18-
use crate::tracing_ext::RecordDurationOnDrop;
1919
use tracing::{debug, debug_span, info, instrument};
2020

2121
type EvolveEthEvmConfig = EvEvmConfig<ChainSpec, EvTxEvmFactory>;

crates/node/src/payload_service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use std::sync::Arc;
22

3+
use crate::tracing_ext::RecordDurationOnDrop;
34
use alloy_primitives::{Address, U256};
45
use evolve_ev_reth::EvolvePayloadAttributes;
56
use eyre::WrapErr;
@@ -20,7 +21,6 @@ use reth_payload_builder::PayloadBuilderError;
2021
use reth_provider::HeaderProvider;
2122
use reth_revm::cached::CachedReads;
2223
use tokio::runtime::Handle;
23-
use crate::tracing_ext::RecordDurationOnDrop;
2424
use tracing::{info, instrument};
2525

2626
use crate::{

crates/node/src/txpool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use std::sync::Arc;
22

3+
use crate::tracing_ext::RecordDurationOnDrop;
34
use alloy_consensus::{
45
constants::EIP1559_TX_TYPE_ID,
56
transaction::{Recovered, TxHashRef},
@@ -29,7 +30,6 @@ use reth_transaction_pool::{
2930
EthTransactionValidator, PoolTransaction, TransactionOrigin, TransactionValidationOutcome,
3031
TransactionValidationTaskExecutor, TransactionValidator,
3132
};
32-
use crate::tracing_ext::RecordDurationOnDrop;
3333
use tracing::{debug, info, instrument, warn};
3434

3535
/// Pool transaction wrapper for `EvTxEnvelope`.

crates/node/src/validator.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
use std::sync::Arc;
44

5+
use crate::tracing_ext::RecordDurationOnDrop;
56
use alloy_consensus::Header;
67
use alloy_eips::Decodable2718;
78
use alloy_rpc_types::engine::ExecutionData;
@@ -20,7 +21,6 @@ use reth_ethereum::{
2021
};
2122
use reth_ethereum_payload_builder::EthereumExecutionPayloadValidator;
2223
use reth_primitives_traits::{Block as _, RecoveredBlock, SealedBlock};
23-
use crate::tracing_ext::RecordDurationOnDrop;
2424
use tracing::{debug, info, instrument, Span};
2525

2626
use crate::{attributes::EvolveEnginePayloadAttributes, node::EvolveEngineTypes};
@@ -99,8 +99,7 @@ impl PayloadValidator<EvolveEngineTypes> for EvolveEngineValidator {
9999
info!(error = ?err, "bypassing validation error for ev-reth");
100100
// For evolve, we trust the payload builder - parse the block with EvNode support.
101101
let ev_block = parse_evolve_payload(payload)?;
102-
Span::current()
103-
.record("block_hash", tracing::field::display(ev_block.hash()));
102+
Span::current().record("block_hash", tracing::field::display(ev_block.hash()));
104103
ev_block
105104
.try_recover()
106105
.map_err(|e| NewPayloadError::Other(e.into()))

0 commit comments

Comments
 (0)