feat: wire up Reth node builder with Bor PoA consensus#83
Merged
VAIBHAVJINDAL3012 merged 2 commits intomainfrom Mar 11, 2026
Merged
feat: wire up Reth node builder with Bor PoA consensus#83VAIBHAVJINDAL3012 merged 2 commits intomainfrom
VAIBHAVJINDAL3012 merged 2 commits intomainfrom
Conversation
Integrate Boreth with Reth's CLI and node builder infrastructure so the binary actually starts a full syncing node (P2P, RPC, database, sync pipeline, consensus engine). - Add BorChainSpecParser for "amoy" and "polygon" chain resolution - Rewrite main.rs to use Reth's Cli with EthereumNode - Add Amoy testnet bootnodes and DNS discovery constants - Add BorChainSpec::into_inner() for ChainSpec extraction - Add reth-ethereum-cli, reth-node-builder, reth-cli-runner deps
Implement BorConsensus adapter that wraps Bor's PoA consensus rules into Reth's Consensus/HeaderValidator/FullConsensus traits, replacing the Ethereum Beacon consensus engine. BorConsensus enforces: - Zero nonce (PoA, not PoW) - Empty ommers (single-signer PoA) - No withdrawals, blob gas, beacon block root, requests hash - Extra data >= 97 bytes (32 vanity + 65 seal) - Strictly increasing timestamps - Gas used validation post-execution Uses ComponentsBuilder to swap only the consensus builder while keeping all other EthereumNode components (EVM, pool, network, RPC).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
BorChainSpecParserfor "amoy" and "polygon" chain resolution via--chainflagBorConsensusadapter replacingEthBeaconConsensuswith Bor PoA consensus rules (zero nonce, no ommers/withdrawals/blobs, extra data validation, gas used checks)ComponentsBuilderto swap only the consensus while keeping standard EVM, pool, network, RPCTest plan
cargo run --bin boreth -- node --chain amoy🤖 Generated with Claude Code