Skip to content
This repository was archived by the owner on Jan 12, 2026. It is now read-only.

Commit 7e1f4cd

Browse files
committed
Remove changed_account_balances
1 parent 8d0c069 commit 7e1f4cd

1 file changed

Lines changed: 3 additions & 13 deletions

File tree

  • crates/op-rbuilder/src/builders/flashblocks

crates/op-rbuilder/src/builders/flashblocks/payload.rs

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ use alloy_consensus::{
1616
BlockBody, EMPTY_OMMER_ROOT_HASH, Header, constants::EMPTY_WITHDRAWALS, proofs,
1717
};
1818
use 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};
2020
use core::time::Duration;
2121
use eyre::WrapErr as _;
2222
use reth::payload::PayloadBuilderAttributes;
2323
use reth_basic_payload_builder::BuildOutcome;
2424
use reth_chain_state::ExecutedBlock;
2525
use reth_chainspec::EthChainSpec;
2626
use reth_evm::{ConfigureEvm, execute::BlockBuilder};
27-
use reth_node_api::{Block, NodePrimitives, PayloadBuilderError};
27+
use reth_node_api::{Block, PayloadBuilderError};
2828
use reth_optimism_consensus::{calculate_receipt_root_no_memo_optimism, isthmus};
2929
use reth_optimism_evm::{OpEvmConfig, OpNextBlockEnvAttributes};
3030
use reth_optimism_forks::OpHardforks;
3131
use reth_optimism_node::{OpBuiltPayload, OpPayloadBuilderAttributes};
32-
use reth_optimism_primitives::{OpPrimitives, OpTransactionSigned};
32+
use reth_optimism_primitives::OpTransactionSigned;
3333
use reth_payload_util::BestPayloadTransactions;
3434
use reth_primitives_traits::RecoveredBlock;
3535
use reth_provider::{
@@ -942,8 +942,6 @@ where
942942

943943
#[derive(Debug, Serialize, Deserialize)]
944944
struct 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

Comments
 (0)