Skip to content

Commit

Permalink
feat: remove unused dependencies and enhance taiko engine support
Browse files Browse the repository at this point in the history
  • Loading branch information
johntaiko committed Dec 24, 2024
1 parent 9f1ec2e commit 652a469
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
2 changes: 0 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion bin/reth/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ reth-prune.workspace = true

# taiko
reth-taiko-chainspec.workspace = true
reth-taiko-forks.workspace = true
reth-taiko-node.workspace = true
reth-taiko-cli.workspace = true

Expand Down
3 changes: 1 addition & 2 deletions crates/consensus/beacon/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ reth-tokio-util.workspace = true
reth-engine-primitives.workspace = true
reth-network-p2p.workspace = true
reth-node-types.workspace = true
reth-chainspec = { workspace = true, optional = true }
reth-chainspec = { workspace = true }

# taiko
reth-taiko-engine-types.workspace = true
Expand Down Expand Up @@ -88,7 +88,6 @@ assert_matches.workspace = true
optimism = [
"reth-blockchain-tree/optimism",
"reth-codecs/op",
"reth-chainspec",
"reth-db-api/optimism",
"reth-db/optimism",
"reth-downloaders/optimism",
Expand Down
10 changes: 10 additions & 0 deletions crates/consensus/beacon/src/engine/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,16 @@ where
return true
}

if reth_chainspec::EthChainSpec::is_taiko(&self.blockchain.chain_spec()) {
debug!(
target: "consensus::engine",
fcu_head_num=?header.number,
current_head_num=?head.number,
"[Taiko] Allowing beacon reorg to old head"
);
return true;
}

// 2. Client software MAY skip an update of the forkchoice state and MUST NOT begin a
// payload build process if `forkchoiceState.headBlockHash` references a `VALID` ancestor
// of the head of canonical chain, i.e. the ancestor passed payload validation process
Expand Down
1 change: 0 additions & 1 deletion crates/taiko/node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ reth-network.workspace = true
reth-consensus.workspace = true
reth-trie-db.workspace = true
reth-primitives.workspace = true
reth-ethereum-payload-builder.workspace = true
reth-node-ethereum.workspace = true
reth-rpc.workspace = true
reth-payload-primitives.workspace = true
Expand Down
2 changes: 2 additions & 0 deletions crates/taiko/node/src/engine.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Engine support
use std::sync::Arc;

use alloy_rpc_types_engine::{ExecutionPayloadSidecar, PayloadError};
Expand Down

0 comments on commit 652a469

Please sign in to comment.