@@ -16,20 +16,20 @@ use alloy_consensus::{
1616 BlockBody , EMPTY_OMMER_ROOT_HASH , Header , constants:: EMPTY_WITHDRAWALS , proofs,
1717} ;
1818use alloy_eips:: { Encodable2718 , eip7685:: EMPTY_REQUESTS_HASH , merge:: BEACON_NONCE } ;
19- use alloy_primitives:: { Address , B256 , U256 , map :: foldhash :: HashMap } ;
19+ use alloy_primitives:: { B256 , U256 } ;
2020use core:: time:: Duration ;
2121use eyre:: WrapErr as _;
2222use reth:: payload:: PayloadBuilderAttributes ;
2323use reth_basic_payload_builder:: BuildOutcome ;
2424use reth_chain_state:: ExecutedBlock ;
2525use reth_chainspec:: EthChainSpec ;
2626use reth_evm:: { ConfigureEvm , execute:: BlockBuilder } ;
27- use reth_node_api:: { Block , NodePrimitives , PayloadBuilderError } ;
27+ use reth_node_api:: { Block , PayloadBuilderError } ;
2828use reth_optimism_consensus:: { calculate_receipt_root_no_memo_optimism, isthmus} ;
2929use reth_optimism_evm:: { OpEvmConfig , OpNextBlockEnvAttributes } ;
3030use reth_optimism_forks:: OpHardforks ;
3131use reth_optimism_node:: { OpBuiltPayload , OpPayloadBuilderAttributes } ;
32- use reth_optimism_primitives:: { OpPrimitives , OpTransactionSigned } ;
32+ use reth_optimism_primitives:: OpTransactionSigned ;
3333use reth_payload_util:: BestPayloadTransactions ;
3434use reth_primitives_traits:: RecoveredBlock ;
3535use reth_provider:: {
@@ -942,8 +942,6 @@ where
942942
943943#[ derive( Debug , Serialize , Deserialize ) ]
944944struct FlashblocksMetadata {
945- receipts : Option < HashMap < B256 , <OpPrimitives as NodePrimitives >:: Receipt > > ,
946- new_account_balances : HashMap < Address , U256 > ,
947945 block_number : u64 ,
948946}
949947
@@ -1135,16 +1133,8 @@ where
11351133 . collect :: < Vec < _ > > ( ) ;
11361134
11371135 info. extra . last_flashblock_index = info. executed_transactions . len ( ) ;
1138- let new_account_balances = state
1139- . bundle_state
1140- . state
1141- . iter ( )
1142- . filter_map ( |( address, account) | account. info . as_ref ( ) . map ( |info| ( * address, info. balance ) ) )
1143- . collect :: < HashMap < Address , U256 > > ( ) ;
11441136
11451137 let metadata: FlashblocksMetadata = FlashblocksMetadata {
1146- receipts : None ,
1147- new_account_balances,
11481138 block_number : ctx. parent ( ) . number + 1 ,
11491139 } ;
11501140
0 commit comments