Skip to content

Commit e7fa604

Browse files
committed
Begin upgrading to v1.10.0-rc
1 parent 3ded00d commit e7fa604

File tree

9 files changed

+2149
-984
lines changed

9 files changed

+2149
-984
lines changed

Cargo.lock

Lines changed: 2038 additions & 879 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 97 additions & 92 deletions
Large diffs are not rendered by default.

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ use core::time::Duration;
2121
use eyre::WrapErr as _;
2222
use reth::payload::PayloadBuilderAttributes;
2323
use reth_basic_payload_builder::BuildOutcome;
24-
use reth_chain_state::ExecutedBlock;
2524
use reth_chainspec::EthChainSpec;
2625
use reth_evm::{ConfigureEvm, execute::BlockBuilder};
27-
use reth_node_api::{Block, NodePrimitives, PayloadBuilderError};
26+
use reth_node_api::{Block, BuiltPayloadExecutedBlock, NodePrimitives, PayloadBuilderError};
2827
use reth_optimism_consensus::{calculate_receipt_root_no_memo_optimism, isthmus};
2928
use reth_optimism_evm::{OpEvmConfig, OpNextBlockEnvAttributes};
3029
use reth_optimism_forks::OpHardforks;
@@ -1112,11 +1111,11 @@ where
11121111
RecoveredBlock::new_unhashed(block.clone(), info.executed_senders.clone());
11131112
// create the executed block data
11141113

1115-
let executed = ExecutedBlock {
1114+
let executed = BuiltPayloadExecutedBlock {
11161115
recovered_block: Arc::new(recovered_block),
11171116
execution_output: Arc::new(execution_outcome),
1118-
hashed_state: Arc::new(hashed_state),
1119-
trie_updates: Arc::new(trie_output),
1117+
hashed_state: either::Either::Left(Arc::new(hashed_state)),
1118+
trie_updates: either::Either::Left(Arc::new(trie_output)),
11201119
};
11211120
debug!(target: "payload_builder", message = "Executed block created");
11221121

crates/builder/op-rbuilder/src/builders/generator.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,8 +470,7 @@ mod tests {
470470
use alloy_primitives::U256;
471471
use rand::rng;
472472
use reth::tasks::TokioTaskExecutor;
473-
use reth_chain_state::ExecutedBlock;
474-
use reth_node_api::NodePrimitives;
473+
use reth_node_api::{BuiltPayloadExecutedBlock, NodePrimitives};
475474
use reth_optimism_payload_builder::{OpPayloadPrimitives, payload::OpPayloadBuilderAttributes};
476475
use reth_optimism_primitives::OpPrimitives;
477476
use reth_primitives::SealedBlock;
@@ -590,7 +589,7 @@ mod tests {
590589
}
591590

592591
/// Returns the entire execution data for the built block, if available.
593-
fn executed_block(&self) -> Option<ExecutedBlock<Self::Primitives>> {
592+
fn executed_block(&self) -> Option<BuiltPayloadExecutedBlock<Self::Primitives>> {
594593
None
595594
}
596595

crates/builder/op-rbuilder/src/builders/standard/payload.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ use alloy_evm::Database;
1414
use alloy_primitives::U256;
1515
use reth::payload::PayloadBuilderAttributes;
1616
use reth_basic_payload_builder::{BuildOutcome, BuildOutcomeKind, MissingPayloadBehaviour};
17-
use reth_chain_state::ExecutedBlock;
1817
use reth_evm::{ConfigureEvm, execute::BlockBuilder};
19-
use reth_node_api::{Block, PayloadBuilderError};
18+
use reth_node_api::{Block, BuiltPayloadExecutedBlock, PayloadBuilderError};
2019
use reth_optimism_consensus::{calculate_receipt_root_no_memo_optimism, isthmus};
2120
use reth_optimism_evm::{OpEvmConfig, OpNextBlockEnvAttributes};
2221
use reth_optimism_forks::OpHardforks;
@@ -586,16 +585,16 @@ impl<Txs: PayloadTxsBounds> OpBuilder<'_, Txs> {
586585
info!(target: "payload_builder", id=%ctx.attributes().payload_id(), "sealed built block");
587586

588587
// create the executed block data
589-
let executed = ExecutedBlock {
588+
let executed = BuiltPayloadExecutedBlock {
590589
recovered_block: Arc::new(
591590
RecoveredBlock::<alloy_consensus::Block<OpTransactionSigned>>::new_sealed(
592591
sealed_block.as_ref().clone(),
593592
info.executed_senders,
594593
),
595594
),
596595
execution_output: Arc::new(execution_outcome),
597-
hashed_state: Arc::new(hashed_state),
598-
trie_updates: Arc::new(trie_output),
596+
hashed_state: either::Either::Left(Arc::new(hashed_state)),
597+
trie_updates: either::Either::Left(Arc::new(trie_output)),
599598
};
600599

601600
let no_tx_pool = ctx.attributes().no_tx_pool;

crates/builder/op-rbuilder/src/primitives/reth/engine_api_builder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ where
7878
EngineCapabilities::new(OP_ENGINE_CAPABILITIES.iter().copied()),
7979
engine_validator,
8080
ctx.config.engine.accept_execution_requests_hash,
81+
ctx.node.network().clone(),
8182
);
8283

8384
Ok(OpEngineApiExt::new(OpEngineApi::new(inner)))
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 7117c90c8cf6c68e5acce4f09a6b24715cea4de6
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit fcbae5394ae8ad52d8e580a3477db99814b9d565
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 89365b880c4f3c786bdd453d4b8e8fe410344a69

0 commit comments

Comments
 (0)