11use alloy_consensus:: { Block , Transaction , TxReceipt } ;
2- use alloy_eips:: eip2718:: WithEncoded ;
3- use alloy_eips:: eip4895:: Withdrawals ;
4- use alloy_eips:: { Decodable2718 , Encodable2718 } ;
5- use alloy_op_evm:: block:: receipt_builder:: OpReceiptBuilder ;
6- use alloy_op_evm:: block:: OpTxEnv ;
7- use alloy_op_evm:: { OpBlockExecutionCtx , OpBlockExecutor , OpBlockExecutorFactory , OpEvmFactory } ;
2+ use alloy_eips:: { eip2718:: WithEncoded , eip4895:: Withdrawals , Decodable2718 , Encodable2718 } ;
3+ use alloy_op_evm:: {
4+ block:: { receipt_builder:: OpReceiptBuilder , OpTxEnv } ,
5+ OpBlockExecutionCtx , OpBlockExecutor , OpBlockExecutorFactory , OpEvmFactory ,
6+ } ;
87use alloy_rpc_types_engine:: PayloadId ;
98use eyre:: eyre:: OptionExt as _;
109use flashblocks_p2p:: protocol:: handler:: FlashblocksHandle ;
11- use flashblocks_primitives:: p2p:: AuthorizedPayload ;
12- use flashblocks_primitives:: primitives:: FlashblocksPayloadV1 ;
10+ use flashblocks_primitives:: { p2p:: AuthorizedPayload , primitives:: FlashblocksPayloadV1 } ;
1311use futures:: StreamExt as _;
1412use op_alloy_consensus:: { encode_holocene_extra_data, OpTxEnvelope } ;
1513use parking_lot:: RwLock ;
16- use reth:: core :: primitives :: Receipt ;
17- use reth :: payload :: EthPayloadBuilderAttributes ;
18- use reth :: revm :: cancelled :: CancelOnDrop ;
19- use reth :: revm :: database:: StateProviderDatabase ;
20- use reth :: revm :: State ;
14+ use reth:: {
15+ core :: primitives :: Receipt ,
16+ payload :: EthPayloadBuilderAttributes ,
17+ revm :: { cancelled :: CancelOnDrop , database:: StateProviderDatabase , State } ,
18+ } ;
2119use reth_basic_payload_builder:: { BuildOutcomeKind , PayloadConfig } ;
2220use reth_chain_state:: ExecutedBlock ;
23- use reth_evm:: block:: { BlockExecutorFactory , BlockExecutorFor } ;
24- use reth_evm:: execute:: {
25- BasicBlockBuilder , BlockAssembler , BlockAssemblerInput , BlockBuilder , BlockBuilderOutcome ,
26- ExecutorTx ,
27- } ;
28- use reth_evm:: op_revm:: { OpHaltReason , OpSpecId } ;
2921use reth_evm:: {
30- block:: { BlockExecutionError , BlockExecutor , CommitChanges , ExecutableTx } ,
31- Database , FromRecoveredTx , FromTxWithEncoded , OnStateHook ,
22+ block:: {
23+ BlockExecutionError , BlockExecutor , BlockExecutorFactory , BlockExecutorFor , CommitChanges ,
24+ ExecutableTx ,
25+ } ,
26+ execute:: {
27+ BasicBlockBuilder , BlockAssembler , BlockAssemblerInput , BlockBuilder , BlockBuilderOutcome ,
28+ ExecutorTx ,
29+ } ,
30+ op_revm:: { OpHaltReason , OpSpecId } ,
31+ Database , Evm , EvmFactory , FromRecoveredTx , FromTxWithEncoded , OnStateHook ,
3232} ;
33- use reth_evm:: { Evm , EvmFactory } ;
3433use reth_node_api:: { BuiltPayload as _, Events , FullNodeTypes , NodeTypes } ;
3534use reth_node_builder:: BuilderContext ;
3635use reth_optimism_chainspec:: OpChainSpec ;
@@ -41,17 +40,22 @@ use reth_optimism_node::{
4140} ;
4241use reth_optimism_primitives:: { DepositReceipt , OpPrimitives , OpReceipt , OpTransactionSigned } ;
4342use reth_payload_util:: BestPayloadTransactions ;
44- use reth_primitives:: { transaction:: SignedTransaction , SealedHeader } ;
45- use reth_primitives:: { NodePrimitives , Recovered , RecoveredBlock } ;
43+ use reth_primitives:: {
44+ transaction:: SignedTransaction , NodePrimitives , Recovered , RecoveredBlock , SealedHeader ,
45+ } ;
4646use reth_provider:: { BlockExecutionResult , HeaderProvider , StateProvider , StateProviderFactory } ;
4747use reth_transaction_pool:: TransactionPool ;
48- use revm:: context:: result:: { ExecutionResult , ResultAndState } ;
49- use revm:: context:: BlockEnv ;
50- use revm:: database:: states:: bundle_state:: BundleRetention ;
51- use revm:: database:: states:: reverts:: Reverts ;
52- use revm:: database:: BundleState ;
53- use std:: collections:: HashSet ;
54- use std:: sync:: Arc ;
48+ use revm:: {
49+ context:: {
50+ result:: { ExecutionResult , ResultAndState } ,
51+ BlockEnv ,
52+ } ,
53+ database:: {
54+ states:: { bundle_state:: BundleRetention , reverts:: Reverts } ,
55+ BundleState ,
56+ } ,
57+ } ;
58+ use std:: { collections:: HashSet , sync:: Arc } ;
5559use tokio:: sync:: broadcast;
5660use tracing:: { error, trace} ;
5761
0 commit comments