Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(op): L1 receipt rpc methods default trait methods #8437

Merged
merged 131 commits into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
131 commits
Select commit Hold shift + click to select a range
c34b31e
chore(trie): `PrefixSet::iter` (#8343)
rkrasiuk May 22, 2024
ea2c313
dep: bump `alloy-trie` to 0.4.1 (#8344)
rkrasiuk May 22, 2024
e2a5857
docs: add panic comments in from_compact() (#8346)
fgimenez May 22, 2024
9071330
docs: add warning notes about using NippyJar and Compact encoding for…
fgimenez May 22, 2024
f45ca74
refactor(consensus, evm): move post-execution validation to consensus…
shekhirin May 22, 2024
d0386b8
feat: use broadcast channel for event listeners (#8193)
fgimenez May 22, 2024
7653e81
perf(primitives): avoid cloning receipts when calculating the root (#…
DaniPopes May 22, 2024
dbc65ad
style: small refactor for `txpool_inspect` (#8348)
tcoratger May 22, 2024
bc914a6
fix: check for files in is_database_empty (#8351)
fgimenez May 22, 2024
3eddaf3
feat: implement table range checksums for reth db checksum (#7623)
AbnerZheng May 22, 2024
8158c28
doc: remove missing link (#8363)
fgimenez May 23, 2024
c5bc960
fix(storage): use u8 for NippiJar's DataReader::offset_size (#8360)
fgimenez May 23, 2024
155876d
chore: improve HaveNotReceivedUpdatesForAWhile warning (#8356)
Rjected May 23, 2024
4250c33
chore: clippy happy (#8362)
mattsse May 23, 2024
f447db1
feat: add static-file-types (#8361)
mattsse May 23, 2024
3312dc2
chore: make unknown block error lowercase (#8355)
Rjected May 23, 2024
b8eebbd
chore: add docs for using personal tag in kurtosis (#8354)
Rjected May 23, 2024
bc4dd37
chore(editor): set indent size=2 for the yaml files (#8366)
jsvisa May 23, 2024
c73af62
chore: remove network setup from config (#8364)
mattsse May 23, 2024
a4933e7
chore: remove peer types dep (#8368)
mattsse May 23, 2024
39d24b4
feat: return parent beacon block root in payload conversion (#8349)
Rjected May 23, 2024
62e05b5
fix: disable timeout on DbTool level (#8357)
wlawt May 23, 2024
0e87ff4
chore: sort workspace members (#8374)
mattsse May 23, 2024
8263480
chore(github): run update-book-cli in the lint workflow (#8335)
jsvisa May 23, 2024
1287bbc
chore: extract provider types (#8372)
mattsse May 23, 2024
d7172b6
chore(deps): shrink some deps (#8376)
mattsse May 23, 2024
df7c9ee
chore: extract p2p types from interfaces (#8382)
mattsse May 24, 2024
05fddd3
chore: replace interfaces dep with storage-errors (#8384)
mattsse May 24, 2024
76d7f4e
chore: import codecs directly (#8385)
mattsse May 24, 2024
6df2b1c
fix(book): rethdb usage with op-node (#8375)
bsh98 May 24, 2024
9f61d18
chore: extract block execution errors (#8386)
mattsse May 24, 2024
e0a9319
chore(deps): rm reth-interfaces dep from reth-revm (#8387)
mattsse May 24, 2024
91f288d
chore: remove wire-types optimism feature (#8383)
mattsse May 24, 2024
4ee75d5
chore: move sync to p2p crate (#8389)
mattsse May 24, 2024
7892604
chore: simplify tree result types (#8390)
mattsse May 24, 2024
b06433c
chore(trie): account specific hashed storage cursor (#8377)
rkrasiuk May 24, 2024
59622db
chore: add 0BSD to deny.toml (#8391)
Rjected May 24, 2024
a8e5eb6
feat: implement clientVersionV1 in engine API (#8016)
guha-rahul May 24, 2024
46fd454
chore: reorder struct account hashing struct defs (#8392)
mattsse May 25, 2024
0056f2f
chore(deps): use error imports directly (#8388)
mattsse May 25, 2024
7dd7877
refactor: extract init from node-core (#8373)
wlawt May 25, 2024
df83bef
chore: replace reth-interface usage (#8394)
mattsse May 25, 2024
a6cfa2c
chore: remove rpc-layer dep (#8395)
mattsse May 25, 2024
72f2f1b
chore: rm unused functions (#8396)
mattsse May 25, 2024
50590aa
chore: rm redundant pin (#8397)
mattsse May 25, 2024
2d33c17
chore(deps): weekly `cargo update` (#8401)
github-actions[bot] May 26, 2024
4dd2ad9
chore: extract blockchaintree types to blockchain-tree-api crate (#8393)
mattsse May 27, 2024
89e55c4
feat: reset trie updates on make_canonical (#8370)
fgimenez May 27, 2024
f3013e4
fix: validate received ENR response in discv4 (#8407)
mattsse May 27, 2024
2bf5c93
chore(docs): clarify tree canonical chain docs (#8408)
mattsse May 27, 2024
ed926ec
chore: move `generic-array` to workspace (#8404)
mattsse May 27, 2024
2e47e9f
feat: add udp packet ratelimiting (#8406)
mattsse May 27, 2024
b4d7d36
chore(trie): simplify hashed cursor abstraction (#8380)
rkrasiuk May 27, 2024
cfc1344
chore(trie): dedup node iters (#8381)
rkrasiuk May 27, 2024
beaa0fe
chore: add internal boxed error variant (#8412)
mattsse May 27, 2024
a14e549
chore: remove more reth-interfaces from provider (#8410)
mattsse May 27, 2024
07dfb9f
chore(engine): tree action on downloaded block (#8409)
rkrasiuk May 27, 2024
e543983
chore: rm NetworkError variant from RethError (#8413)
mattsse May 27, 2024
4545b01
chore(rpc): remove redundant trait bounds (#8414)
emhane May 27, 2024
c8a18a2
chore: fix lint (#8415)
emhane May 27, 2024
749d68b
chore: move EvmEnvProvider (#8420)
mattsse May 27, 2024
21b2386
chore: rm reth-interfaces from reth-trie (#8419)
mattsse May 27, 2024
48be58c
chore(engine): reduce number of canonical tip lookups from engine (#8…
rkrasiuk May 27, 2024
66c072c
fix(metrics): bug tx fetcher metrics (#8416)
emhane May 27, 2024
20aeb2b
chore: use BlockId functions directly (#8417)
mattsse May 28, 2024
faf3c20
Merge branch 'main' into emhane/op-eth-get-tx-receipt
emhane May 28, 2024
1e2a0c3
chore(tree): misc tree cleanup (#8423)
rkrasiuk May 28, 2024
d5bdb8e
feat: sidecar fetcher (#7443)
JackG-eth May 28, 2024
2200b0f
Move eth_getTransactionReceipt helper to op rpc crate
emhane May 28, 2024
14f0356
chore: extract bundle state type (#8425)
mattsse May 28, 2024
c16fb4e
feat: extract storage traits to storage-api (#8427)
mattsse May 28, 2024
f6e1c7f
chore: remove reth-interfaces from static file (#8428)
mattsse May 28, 2024
b4a1b73
feat: implement EIP-7685 (#8424)
shekhirin May 28, 2024
6c96dde
Impl l1 receipt rpc methods as default trait methods
emhane May 28, 2024
c54276e
chore: misc storage api (#8432)
mattsse May 28, 2024
9874a1b
chore: move Chain type (#8433)
mattsse May 28, 2024
911a3a4
chore: replace reth-provider dep in reth-evm (#8430)
mattsse May 28, 2024
3296342
chore: move generators module (#8429)
mattsse May 28, 2024
a5c3c63
chore: rm reth-interfaces from auto-seal (#8434)
mattsse May 28, 2024
eece7fc
Override default receipt rpc methods for op
emhane May 28, 2024
b8a96e1
Fix lint
emhane May 28, 2024
de4e0ba
chore: rm reth-interfaces from network (#8435)
mattsse May 28, 2024
3b70897
chore: rm reth-interfaces from downloaders (#8436)
mattsse May 28, 2024
03c3d51
chore: rm reth-interfaces from node-builder (#8438)
mattsse May 28, 2024
d78c5b7
chore: extract retherror to reth-errors (#8439)
mattsse May 28, 2024
3e7f137
fix(op): filter out receipts for dup txns (#8400)
emhane May 28, 2024
409c15d
chore: rm reth error variant (#8440)
mattsse May 28, 2024
0232221
chore(deps): rm reth-interfaces from rpc (#8444)
mattsse May 28, 2024
5dd1d88
chore: rm reth-interfaces from trie parallel (#8442)
mattsse May 28, 2024
9f38a67
chore(deps): txpool deps cleanup (#8443)
mattsse May 28, 2024
c67ed1d
chore(deps): rm reth-interfaces from examples (#8445)
mattsse May 28, 2024
1f2b68b
chore: rm reth-interfaces from static file (#8441)
mattsse May 28, 2024
c6b18ff
chore(tree): remove unused `BlockchainTreeViewer` methods (#8426)
rkrasiuk May 28, 2024
76b32c8
chore: bump revm/alloy (#8447)
rakita May 28, 2024
7843ce9
chore: rm reth-interfaces from payload basic (#8450)
mattsse May 28, 2024
d777d5f
chore: rm reth-interfaces from node-core (#8449)
mattsse May 28, 2024
2bfe5a9
perf(mdbx): propagate `-C target-cpu` (#8452)
DaniPopes May 29, 2024
25e2b24
chore: rm reth-interfaces from provider (#8457)
mattsse May 29, 2024
97cb383
chore: rm reth-interfaces from stages (#8455)
mattsse May 29, 2024
e21a257
chore(deps): remove useless deps (#8453)
jackwener May 29, 2024
dd21131
Rexport tx pool identifiers (#8458)
loocapro May 29, 2024
efccfbf
chore: rm reth-interfaces from beacon (#8456)
mattsse May 29, 2024
fe823cb
chore: rm reth-interfaces from consensus (#8461)
mattsse May 29, 2024
7262d08
chore(rpc): rm unused fn (#8463)
mattsse May 29, 2024
0cb5358
chore: use noop consensus for op import (#8462)
mattsse May 29, 2024
19c529e
add `use_self` clippy lint (#8325)
tcoratger May 29, 2024
69c6530
chore: rm reth-interfaces from prune (#8469)
mattsse May 29, 2024
269e3a9
chore: rm reth-interfaces from engine api (#8468)
mattsse May 29, 2024
0d20503
chore: rm reth-interfaces from db-common (#8467)
mattsse May 29, 2024
53bcb2c
Fix: manually impl Clone for BlockchainProvider (#8474)
prestwich May 29, 2024
bed246c
chore: name rayon threads (#8471)
DaniPopes May 29, 2024
bd59c1b
chore: rm reth-interfaces from stages-api (#8472)
mattsse May 29, 2024
13c9145
chore: name std threads (#8475)
DaniPopes May 29, 2024
1d428cb
feat: add blockexecution msg fn (#8478)
mattsse May 29, 2024
09f1ee1
chore: rm reth-interfaces from op e2e (#8480)
mattsse May 29, 2024
43bfa2e
chore: rm reth-interfaces from payload builder (#8479)
mattsse May 29, 2024
77b872c
chore: rm reth-interfaces from op blockchain tree (#8481)
mattsse May 29, 2024
d7e822f
chore: rm reth-interfaces from bin reth (#8483)
mattsse May 29, 2024
9441803
chore: add _total suffix to counter metrics (#8263)
estensen May 29, 2024
d388fc0
feat: create_transport_rpc_modules (#8482)
prestwich May 29, 2024
bab8aaa
chore: rm reth-interfaces from bin stages (#8484)
mattsse May 29, 2024
42667e1
chore: rm reth-interfaces (#8486)
mattsse May 29, 2024
a680077
chore: rm optimism gated imports (#8491)
mattsse May 29, 2024
fd495eb
chore: group trie crates in trie folder (#8492)
mattsse May 29, 2024
e67bb28
chore(net): test utils improvements (#8493)
DaniPopes May 29, 2024
09006f5
chore: put stages types in folder (#8489)
mattsse May 29, 2024
072d422
chore: minify almost all JSON files (#8495)
DaniPopes May 29, 2024
aa51c61
Merge branch 'main' into emhane/op-eth-get-tx-receipt
emhane May 29, 2024
2011edc
Use trait extensions
emhane May 29, 2024
35ed212
Move trait for loading receipt to new folder
emhane May 29, 2024
dce86c6
Move api traits to own folder
emhane May 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
634 changes: 347 additions & 287 deletions Cargo.lock

Large diffs are not rendered by default.

67 changes: 42 additions & 25 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
members = [
"bin/reth/",
"crates/blockchain-tree/",
"crates/blockchain-tree-api/",
"crates/cli/runner/",
"crates/config/",
"crates/consensus/auto-seal/",
Expand All @@ -10,6 +11,7 @@ members = [
"crates/consensus/consensus/",
"crates/e2e-test-utils/",
"crates/engine-primitives/",
"crates/errors/",
"crates/ethereum-forks/",
"crates/ethereum/consensus/",
"crates/ethereum/engine-primitives/",
Expand All @@ -18,8 +20,8 @@ members = [
"crates/etl/",
"crates/evm/",
"crates/evm/execution-errors",
"crates/evm/execution-types",
"crates/exex/",
"crates/interfaces/",
"crates/metrics/",
"crates/metrics/metrics-derive/",
"crates/net/common/",
Expand All @@ -43,6 +45,7 @@ members = [
"crates/optimism/evm/",
"crates/optimism/node/",
"crates/optimism/payload/",
"crates/optimism/primitives/",
"crates/optimism/rpc",
"crates/payload/basic/",
"crates/payload/builder/",
Expand All @@ -60,8 +63,8 @@ members = [
"crates/rpc/rpc-types-compat/",
"crates/rpc/rpc-types/",
"crates/rpc/rpc/",
"crates/stages-api",
"crates/stages/",
"crates/stages/api/",
"crates/stages/stages/",
"crates/static-file-types/",
"crates/static-file/",
"crates/storage/codecs/",
Expand All @@ -73,12 +76,14 @@ members = [
"crates/storage/libmdbx-rs/mdbx-sys/",
"crates/storage/nippy-jar/",
"crates/storage/provider/",
"crates/storage/storage-api/",
"crates/tasks/",
"crates/tokio-util/",
"crates/tracing/",
"crates/transaction-pool/",
"crates/trie-parallel/",
"crates/trie/",
"crates/trie/parallel/",
"crates/trie/trie",
"examples/beacon-api-sidecar-fetcher/",
"examples/beacon-api-sse/",
"examples/bsc-p2p",
"examples/custom-dev-node/",
Expand Down Expand Up @@ -148,6 +153,7 @@ uninhabited_references = "warn"
unused_peekable = "warn"
unused_rounding = "warn"
useless_let_if_seq = "warn"
use_self = "warn"

# These are nursery lints which have findings. Allow them for now. Some are not
# quite mature enough for use in our codebase and some we don't really want.
Expand All @@ -170,7 +176,6 @@ significant_drop_tightening = "allow"
string_lit_as_bytes = "allow"
type_repetition_in_bounds = "allow"
unnecessary_struct_initialization = "allow"
use_self = "allow"

[workspace.package]
version = "0.2.0-beta.7"
Expand Down Expand Up @@ -217,6 +222,7 @@ reth-auto-seal-consensus = { path = "crates/consensus/auto-seal" }
reth-basic-payload-builder = { path = "crates/payload/basic" }
reth-beacon-consensus = { path = "crates/consensus/beacon" }
reth-blockchain-tree = { path = "crates/blockchain-tree" }
reth-blockchain-tree-api = { path = "crates/blockchain-tree-api" }
reth-cli-runner = { path = "crates/cli/runner" }
reth-codecs = { path = "crates/storage/codecs" }
reth-codecs-derive = { path = "crates/storage/codecs/derive" }
Expand All @@ -232,6 +238,7 @@ reth-downloaders = { path = "crates/net/downloaders" }
reth-e2e-test-utils = { path = "crates/e2e-test-utils" }
reth-ecies = { path = "crates/net/ecies" }
reth-engine-primitives = { path = "crates/engine-primitives" }
reth-errors = { path = "crates/errors" }
reth-eth-wire = { path = "crates/net/eth-wire" }
reth-eth-wire-types = { path = "crates/net/eth-wire-types" }
reth-ethereum-consensus = { path = "crates/ethereum/consensus" }
Expand All @@ -243,9 +250,9 @@ reth-evm = { path = "crates/evm" }
reth-evm-ethereum = { path = "crates/ethereum/evm" }
reth-evm-optimism = { path = "crates/optimism/evm" }
reth-execution-errors = { path = "crates/evm/execution-errors" }
reth-execution-types = { path = "crates/evm/execution-types" }
reth-exex = { path = "crates/exex" }
reth-fs-util = { path = "crates/fs-util" }
reth-interfaces = { path = "crates/interfaces" }
reth-ipc = { path = "crates/rpc/ipc" }
reth-libmdbx = { path = "crates/storage/libmdbx-rs" }
reth-mdbx-sys = { path = "crates/storage/libmdbx-rs/mdbx-sys" }
Expand All @@ -266,6 +273,7 @@ reth-node-events = { path = "crates/node/events" }
reth-node-optimism = { path = "crates/optimism/node" }
reth-optimism-consensus = { path = "crates/optimism/consensus" }
reth-optimism-payload-builder = { path = "crates/optimism/payload" }
reth-optimism-primitives = { path = "crates/optimism/primitives" }
reth-optimism-rpc = { path = "crates/optimism/rpc" }
reth-payload-builder = { path = "crates/payload/builder" }
reth-payload-validator = { path = "crates/payload/validator" }
Expand All @@ -281,28 +289,30 @@ reth-rpc-engine-api = { path = "crates/rpc/rpc-engine-api" }
reth-rpc-layer = { path = "crates/rpc/rpc-layer" }
reth-rpc-types = { path = "crates/rpc/rpc-types" }
reth-rpc-types-compat = { path = "crates/rpc/rpc-types-compat" }
reth-stages = { path = "crates/stages" }
reth-stages-api = { path = "crates/stages-api" }
reth-stages = { path = "crates/stages/stages" }
reth-stages-api = { path = "crates/stages/api" }
reth-static-file = { path = "crates/static-file" }
reth-static-file-types = { path = "crates/static-file-types" }
reth-storage-api = { path = "crates/storage/storage-api" }
reth-storage-errors = { path = "crates/storage/errors" }
reth-tasks = { path = "crates/tasks" }
reth-testing-utils = { path = "testing/testing-utils" }
reth-tokio-util = { path = "crates/tokio-util" }
reth-tracing = { path = "crates/tracing" }
reth-transaction-pool = { path = "crates/transaction-pool" }
reth-trie = { path = "crates/trie" }
reth-trie-parallel = { path = "crates/trie-parallel" }
reth-trie = { path = "crates/trie/trie" }
reth-trie-parallel = { path = "crates/trie/parallel" }

# revm
revm = { version = "9.0.0", features = [
"std",
"secp256k1",
"blst",
], default-features = false }
revm-primitives = { version = "4.0.0", features = [
"std",
], default-features = false }
revm-inspectors = { git = "https://github.com/paradigmxyz/evm-inspectors", rev = "5a4fd5e" }
revm-inspectors = { git = "https://github.com/paradigmxyz/evm-inspectors", rev = "ed5450e" }

# eth
alloy-chains = "0.1.15"
Expand All @@ -311,21 +321,21 @@ alloy-dyn-abi = "0.7.2"
alloy-sol-types = "0.7.2"
alloy-rlp = "0.3.4"
alloy-trie = "0.4"
alloy-rpc-types = { git = "https://github.com/alloy-rs/alloy", rev = "64feb9b" }
alloy-rpc-types-anvil = { git = "https://github.com/alloy-rs/alloy", rev = "64feb9b" }
alloy-rpc-types-trace = { git = "https://github.com/alloy-rs/alloy", rev = "64feb9b" }
alloy-rpc-types-engine = { git = "https://github.com/alloy-rs/alloy", rev = "64feb9b" }
alloy-rpc-types-beacon = { git = "https://github.com/alloy-rs/alloy", rev = "64feb9b" }
alloy-genesis = { git = "https://github.com/alloy-rs/alloy", rev = "64feb9b" }
alloy-node-bindings = { git = "https://github.com/alloy-rs/alloy", rev = "64feb9b" }
alloy-provider = { git = "https://github.com/alloy-rs/alloy", rev = "64feb9b", default-features = false, features = [
alloy-rpc-types = { git = "https://github.com/alloy-rs/alloy", rev = "bd39117" }
alloy-rpc-types-anvil = { git = "https://github.com/alloy-rs/alloy", rev = "bd39117" }
alloy-rpc-types-trace = { git = "https://github.com/alloy-rs/alloy", rev = "bd39117" }
alloy-rpc-types-engine = { git = "https://github.com/alloy-rs/alloy", rev = "bd39117" }
alloy-rpc-types-beacon = { git = "https://github.com/alloy-rs/alloy", rev = "bd39117" }
alloy-genesis = { git = "https://github.com/alloy-rs/alloy", rev = "bd39117" }
alloy-node-bindings = { git = "https://github.com/alloy-rs/alloy", rev = "bd39117" }
alloy-provider = { git = "https://github.com/alloy-rs/alloy", rev = "bd39117", default-features = false, features = [
"reqwest",
] }
alloy-eips = { git = "https://github.com/alloy-rs/alloy", default-features = false, rev = "64feb9b" }
alloy-signer = { git = "https://github.com/alloy-rs/alloy", rev = "64feb9b" }
alloy-signer-wallet = { git = "https://github.com/alloy-rs/alloy", rev = "64feb9b" }
alloy-network = { git = "https://github.com/alloy-rs/alloy", rev = "64feb9b" }
alloy-consensus = { git = "https://github.com/alloy-rs/alloy", rev = "64feb9b" }
alloy-eips = { git = "https://github.com/alloy-rs/alloy", default-features = false, rev = "bd39117" }
alloy-signer = { git = "https://github.com/alloy-rs/alloy", rev = "bd39117" }
alloy-signer-wallet = { git = "https://github.com/alloy-rs/alloy", rev = "bd39117" }
alloy-network = { git = "https://github.com/alloy-rs/alloy", rev = "bd39117" }
alloy-consensus = { git = "https://github.com/alloy-rs/alloy", rev = "bd39117" }

# misc
auto_impl = "1"
Expand All @@ -337,6 +347,7 @@ dashmap = "5.5"
derive_more = "0.99.17"
fdlimit = "0.3.0"
eyre = "0.6"
generic-array = "0.14"
tracing = "0.1.0"
tracing-appender = "0.2"
thiserror = "1.0"
Expand Down Expand Up @@ -424,3 +435,9 @@ proptest-derive = "0.4"
serial_test = "3"
similar-asserts = "1.5.0"
test-fuzz = "5"

[patch.crates-io]
revm = { git = "https://github.com/bluealloy/revm", rev = "a28a543" }
revm-interpreter = { git = "https://github.com/bluealloy/revm", rev = "a28a543" }
revm-precompile = { git = "https://github.com/bluealloy/revm", rev = "a28a543" }
revm-primitives = { git = "https://github.com/bluealloy/revm", rev = "a28a543" }
4 changes: 3 additions & 1 deletion bin/reth/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ reth-provider = { workspace = true }
reth-evm.workspace = true
reth-revm.workspace = true
reth-stages.workspace = true
reth-interfaces = { workspace = true, features = ["clap"] }
reth-errors.workspace = true
reth-transaction-pool.workspace = true
reth-beacon-consensus.workspace = true
reth-cli-runner.workspace = true
Expand All @@ -35,6 +35,7 @@ reth-rpc-types.workspace = true
reth-rpc-types-compat.workspace = true
reth-rpc-api = { workspace = true, features = ["client"] }
reth-network = { workspace = true, features = ["serde"] }
reth-network-p2p.workspace = true
reth-network-api.workspace = true
reth-downloaders.workspace = true
reth-tracing.workspace = true
Expand All @@ -58,6 +59,7 @@ reth-db-common.workspace = true
reth-node-builder.workspace = true
reth-node-events.workspace = true
reth-consensus.workspace = true
reth-optimism-primitives.workspace = true

# crypto
alloy-rlp.workspace = true
Expand Down
22 changes: 11 additions & 11 deletions bin/reth/src/cli/mod.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
//! CLI definition and entrypoint to executable

#[cfg(feature = "optimism")]
use crate::commands::import_op;
use crate::{
args::{
utils::{chain_help, genesis_value_parser, SUPPORTED_CHAINS},
LogArgs,
},
commands::{
config_cmd, db, debug_cmd, dump_genesis, import, import_receipts, init_cmd, init_state,
config_cmd, db, debug_cmd, dump_genesis, import, init_cmd, init_state,
node::{self, NoArgs},
p2p, recover, stage, test_vectors,
},
Expand Down Expand Up @@ -84,7 +82,7 @@ impl Cli {
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
{
Cli::try_parse_from(itr)
Self::try_parse_from(itr)
}
}

Expand Down Expand Up @@ -150,11 +148,12 @@ impl<Ext: clap::Args + fmt::Debug> Cli<Ext> {
Commands::Init(command) => runner.run_blocking_until_ctrl_c(command.execute()),
Commands::InitState(command) => runner.run_blocking_until_ctrl_c(command.execute()),
Commands::Import(command) => runner.run_blocking_until_ctrl_c(command.execute()),
Commands::ImportReceipts(command) => {
runner.run_blocking_until_ctrl_c(command.execute())
}
#[cfg(feature = "optimism")]
Commands::ImportOp(command) => runner.run_blocking_until_ctrl_c(command.execute()),
#[cfg(feature = "optimism")]
Commands::ImportReceiptsOp(command) => {
runner.run_blocking_until_ctrl_c(command.execute())
}
Commands::DumpGenesis(command) => runner.run_blocking_until_ctrl_c(command.execute()),
Commands::Db(command) => runner.run_blocking_until_ctrl_c(command.execute()),
Commands::Stage(command) => runner.run_command_until_exit(|ctx| command.execute(ctx)),
Expand Down Expand Up @@ -191,13 +190,14 @@ pub enum Commands<Ext: clap::Args + fmt::Debug = NoArgs> {
/// This syncs RLP encoded blocks from a file.
#[command(name = "import")]
Import(import::ImportCommand),
/// This imports RLP encoded receipts from a file.
#[command(name = "import-receipts")]
ImportReceipts(import_receipts::ImportReceiptsCommand),
/// This syncs RLP encoded OP blocks below Bedrock from a file, without executing.
#[cfg(feature = "optimism")]
#[command(name = "import-op")]
ImportOp(import_op::ImportOpCommand),
ImportOp(crate::commands::import_op::ImportOpCommand),
/// This imports RLP encoded receipts from a file.
#[cfg(feature = "optimism")]
#[command(name = "import-receipts-op")]
ImportReceiptsOp(crate::commands::import_receipts_op::ImportReceiptsOpCommand),
/// Dumps genesis block JSON configuration to stdout.
DumpGenesis(dump_genesis::DumpGenesisCommand),
/// Database debugging utilities
Expand Down
5 changes: 4 additions & 1 deletion bin/reth/src/commands/db/diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::{
use clap::Parser;
use reth_db::{
cursor::DbCursorRO, database::Database, open_db_read_only, table::Table, transaction::DbTx,
AccountChangeSets, AccountsHistory, AccountsTrie, BlockBodyIndices, BlockOmmers,
AccountChangeSets, AccountsHistory, AccountsTrie, BlockBodyIndices, BlockOmmers, BlockRequests,
BlockWithdrawals, Bytecodes, CanonicalHeaders, DatabaseEnv, HashedAccounts, HashedStorages,
HeaderNumbers, HeaderTerminalDifficulties, Headers, PlainAccountState, PlainStorageState,
PruneCheckpoints, Receipts, StageCheckpointProgresses, StageCheckpoints, StorageChangeSets,
Expand Down Expand Up @@ -98,6 +98,9 @@ impl Command {
Tables::BlockWithdrawals => {
find_diffs::<BlockWithdrawals>(primary_tx, secondary_tx, output_dir)?
}
Tables::BlockRequests => {
find_diffs::<BlockRequests>(primary_tx, secondary_tx, output_dir)?
}
Tables::TransactionBlocks => {
find_diffs::<TransactionBlocks>(primary_tx, secondary_tx, output_dir)?
}
Expand Down
13 changes: 7 additions & 6 deletions bin/reth/src/commands/db/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ use human_bytes::human_bytes;
use itertools::Itertools;
use reth_db::{
database::Database, mdbx, static_file::iter_static_files, AccountChangeSets, AccountsHistory,
AccountsTrie, BlockBodyIndices, BlockOmmers, BlockWithdrawals, Bytecodes, CanonicalHeaders,
DatabaseEnv, HashedAccounts, HashedStorages, HeaderNumbers, HeaderTerminalDifficulties,
Headers, PlainAccountState, PlainStorageState, PruneCheckpoints, Receipts,
StageCheckpointProgresses, StageCheckpoints, StorageChangeSets, StoragesHistory, StoragesTrie,
Tables, TransactionBlocks, TransactionHashNumbers, TransactionSenders, Transactions,
VersionHistory,
AccountsTrie, BlockBodyIndices, BlockOmmers, BlockRequests, BlockWithdrawals, Bytecodes,
CanonicalHeaders, DatabaseEnv, HashedAccounts, HashedStorages, HeaderNumbers,
HeaderTerminalDifficulties, Headers, PlainAccountState, PlainStorageState, PruneCheckpoints,
Receipts, StageCheckpointProgresses, StageCheckpoints, StorageChangeSets, StoragesHistory,
StoragesTrie, Tables, TransactionBlocks, TransactionHashNumbers, TransactionSenders,
Transactions, VersionHistory,
};
use reth_fs_util as fs;
use reth_node_core::dirs::{ChainPath, DataDirPath};
Expand Down Expand Up @@ -333,6 +333,7 @@ impl Command {
Tables::BlockBodyIndices => viewer.get_checksum::<BlockBodyIndices>().unwrap(),
Tables::BlockOmmers => viewer.get_checksum::<BlockOmmers>().unwrap(),
Tables::BlockWithdrawals => viewer.get_checksum::<BlockWithdrawals>().unwrap(),
Tables::BlockRequests => viewer.get_checksum::<BlockRequests>().unwrap(),
Tables::Bytecodes => viewer.get_checksum::<Bytecodes>().unwrap(),
Tables::CanonicalHeaders => viewer.get_checksum::<CanonicalHeaders>().unwrap(),
Tables::HashedAccounts => viewer.get_checksum::<HashedAccounts>().unwrap(),
Expand Down
8 changes: 4 additions & 4 deletions bin/reth/src/commands/db/tui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,19 @@ impl<T: Table> Entries<T> {
/// if needed.
fn set(&mut self, new_entries: Vec<TableRow<T>>) {
match self {
Entries::RawValues(old_entries) => {
Self::RawValues(old_entries) => {
*old_entries =
new_entries.into_iter().map(|(key, value)| (key, value.into())).collect()
}
Entries::Values(old_entries) => *old_entries = new_entries,
Self::Values(old_entries) => *old_entries = new_entries,
}
}

/// Returns the length of internal [Vec].
fn len(&self) -> usize {
match self {
Entries::RawValues(entries) => entries.len(),
Entries::Values(entries) => entries.len(),
Self::RawValues(entries) => entries.len(),
Self::Values(entries) => entries.len(),
}
}

Expand Down
6 changes: 2 additions & 4 deletions bin/reth/src/commands/debug_cmd/build_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ use reth_blockchain_tree::{
use reth_cli_runner::CliContext;
use reth_consensus::Consensus;
use reth_db::{init_db, DatabaseEnv};
use reth_errors::RethResult;
use reth_evm::execute::{BlockExecutionOutput, BlockExecutorProvider, Executor};
use reth_fs_util as fs;
use reth_interfaces::RethResult;
use reth_node_api::PayloadBuilderAttributes;
use reth_payload_builder::database::CachedReads;
use reth_primitives::{
Expand All @@ -39,8 +39,6 @@ use reth_provider::{
BundleStateWithReceipts, ProviderFactory, StageCheckpointReader, StateProviderFactory,
};
use reth_revm::database::StateProviderDatabase;
#[cfg(feature = "optimism")]
use reth_rpc_types::engine::OptimismPayloadAttributes;
use reth_rpc_types::engine::{BlobsBundleV1, PayloadAttributes};
use reth_transaction_pool::{
blobstore::InMemoryBlobStore, BlobStore, EthPooledTransaction, PoolConfig, TransactionOrigin,
Expand Down Expand Up @@ -257,7 +255,7 @@ impl Command {
#[cfg(feature = "optimism")]
reth_node_optimism::OptimismPayloadBuilderAttributes::try_new(
best_block.hash(),
OptimismPayloadAttributes {
reth_rpc_types::engine::OptimismPayloadAttributes {
payload_attributes: payload_attrs,
transactions: None,
no_tx_pool: None,
Expand Down
Loading
Loading