Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 115 additions & 0 deletions Cargo.lock

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

116 changes: 116 additions & 0 deletions examples/custom-node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,126 @@ reth-rpc-api.workspace = true
reth-rpc-engine-api.workspace = true
reth-ethereum = { workspace = true, features = ["node-api", "network", "evm", "pool"] }

reth-basic-payload-builder.workspace = true
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since we intend this to be a blueprint, we should cleanup deps here, let's try to pull in as much as possible from reth-ethereum L20 and add missing re-exports

so ideally none of these imports are necessary

reth-chainspec.workspace = true
reth-cli.workspace = true
reth-cli-commands.workspace = true
reth-cli-runner.workspace = true
reth-cli-util.workspace = true
reth-codecs-derive.workspace = true
reth-config.workspace = true
reth-consensus.workspace = true
reth-consensus-common.workspace = true
reth-consensus-debug-client.workspace = true
reth-db.workspace = true
reth-db-api.workspace = true
reth-db-common.workspace = true
reth-db-models.workspace = true
reth-discv4.workspace = true
reth-discv5.workspace = true
reth-dns-discovery.workspace = true
reth-downloaders.workspace = true
reth-e2e-test-utils.workspace = true
reth-ecies.workspace = true
reth-engine-local.workspace = true
reth-engine-primitives.workspace = true
reth-engine-tree.workspace = true
reth-engine-service.workspace = true
reth-engine-util.workspace = true
reth-era.workspace = true
reth-era-downloader.workspace = true
reth-era-utils.workspace = true
reth-errors.workspace = true
reth-eth-wire.workspace = true
reth-eth-wire-types.workspace = true
reth-ethereum-cli.workspace = true
reth-ethereum-consensus.workspace = true
reth-ethereum-engine-primitives.workspace = true
reth-ethereum-forks.workspace = true
reth-ethereum-payload-builder.workspace = true
reth-ethereum-primitives.workspace = true
reth-etl.workspace = true
reth-evm.workspace = true
reth-evm-ethereum.workspace = true
reth-optimism-evm.workspace = true
reth-execution-errors.workspace = true
reth-execution-types.workspace = true
reth-exex.workspace = true
reth-exex-test-utils.workspace = true
reth-exex-types.workspace = true
reth-fs-util.workspace = true
reth-invalid-block-hooks.workspace = true
reth-ipc.workspace = true
reth-libmdbx.workspace = true
reth-mdbx-sys.workspace = true
reth-metrics.workspace = true
reth-net-banlist.workspace = true
reth-net-nat.workspace = true
reth-network.workspace = true
reth-network-api.workspace = true
reth-network-p2p.workspace = true
reth-network-types.workspace = true
reth-nippy-jar.workspace = true
reth-node-api.workspace = true
reth-node-core.workspace = true
reth-node-ethereum.workspace = true
reth-node-events.workspace = true
reth-node-metrics.workspace = true
reth-optimism-node.workspace = true
reth-node-types.workspace = true
reth-optimism-chainspec.workspace = true
reth-optimism-cli.workspace = true
reth-optimism-payload-builder.workspace = true
reth-optimism-primitives.workspace = true
reth-optimism-rpc.workspace = true
reth-optimism-storage.workspace = true
reth-optimism-txpool.workspace = true
reth-payload-builder-primitives.workspace = true
reth-payload-primitives.workspace = true
reth-payload-validator.workspace = true
reth-payload-util.workspace = true
reth-primitives.workspace = true
reth-primitives-traits.workspace = true
reth-provider.workspace = true
reth-prune.workspace = true
reth-prune-types.workspace = true
reth-revm.workspace = true
reth-rpc.workspace = true
reth-rpc-api-testing-util.workspace = true
reth-rpc-builder.workspace = true
reth-rpc-eth-api.workspace = true
reth-rpc-eth-types.workspace = true
reth-rpc-layer.workspace = true
reth-rpc-server-types.workspace = true
reth-rpc-types-compat.workspace = true
reth-stages.workspace = true
reth-stages-api.workspace = true
reth-stages-types.workspace = true
reth-stateless.workspace = true
reth-static-file.workspace = true
reth-static-file-types.workspace = true
reth-storage-api.workspace = true
reth-storage-errors.workspace = true
reth-tasks.workspace = true
reth-testing-utils.workspace = true
reth-tokio-util.workspace = true
reth-tracing.workspace = true
reth-transaction-pool.workspace = true
reth-trie.workspace = true
reth-trie-common.workspace = true
reth-trie-db.workspace = true
reth-trie-parallel.workspace = true
reth-trie-sparse.workspace = true
reth-zstd-compressors.workspace = true
reth-ress-protocol.workspace = true
reth-ress-provider.workspace = true

# revm
revm.workspace = true
revm-primitives.workspace = true

# alloy
alloy-network.workspace = true
alloy-consensus = { workspace = true, features = ["serde"] }
alloy-eips.workspace = true
alloy-evm.workspace = true
Expand All @@ -43,6 +158,7 @@ derive_more.workspace = true
eyre.workspace = true
jsonrpsee.workspace = true
serde.workspace = true
tokio.workspace = true

modular-bitfield.workspace = true

Expand Down
6 changes: 6 additions & 0 deletions examples/custom-node/src/chainspec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ pub struct CustomChainSpec {
genesis_header: SealedHeader<CustomHeader>,
}

impl CustomChainSpec {
pub fn inner(&self) -> &OpChainSpec {
&self.inner
}
}

impl Hardforks for CustomChainSpec {
fn fork<H: Hardfork>(&self, fork: H) -> reth_ethereum::chainspec::ForkCondition {
self.inner.fork(fork)
Expand Down
Loading
Loading