Skip to content

Commit c11625b

Browse files
committed
feat(bin): kona consensus node
1 parent ab40b94 commit c11625b

File tree

25 files changed

+3272
-465
lines changed

25 files changed

+3272
-465
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ codegen-units = 1
5353

5454
[workspace.dependencies]
5555
# Shared
56-
base-access-lists = { path = "crates/shared/access-lists" }
5756
base-bundles = { path = "crates/shared/bundles" }
5857
base-cli-utils = { path = "crates/shared/cli-utils" }
5958
base-flashtypes = { path = "crates/shared/flashtypes" }
6059
base-primitives = { path = "crates/shared/primitives" }
60+
base-access-lists = { path = "crates/shared/access-lists" }
6161
base-reth-rpc-types = { path = "crates/shared/reth-rpc-types" }
6262
base-jwt = { path = "crates/shared/jwt" }
6363
# Client
@@ -67,6 +67,20 @@ base-metering = { path = "crates/client/metering" }
6767
base-txpool = { path = "crates/client/txpool" }
6868
base-flashblocks = { path = "crates/client/flashblocks" }
6969

70+
# Kona
71+
kona-rpc = { git = "https://github.com/op-rs/kona", rev = "24e7e2658e09ac00c8e6cbb48bebe6d10f8fb69d" }
72+
kona-disc = { git = "https://github.com/op-rs/kona", rev = "24e7e2658e09ac00c8e6cbb48bebe6d10f8fb69d" }
73+
kona-engine = { git = "https://github.com/op-rs/kona", rev = "24e7e2658e09ac00c8e6cbb48bebe6d10f8fb69d" }
74+
kona-derive = { git = "https://github.com/op-rs/kona", rev = "24e7e2658e09ac00c8e6cbb48bebe6d10f8fb69d" }
75+
kona-gossip = { git = "https://github.com/op-rs/kona", rev = "24e7e2658e09ac00c8e6cbb48bebe6d10f8fb69d" }
76+
kona-genesis = { git = "https://github.com/op-rs/kona", rev = "24e7e2658e09ac00c8e6cbb48bebe6d10f8fb69d" }
77+
kona-registry = { git = "https://github.com/op-rs/kona", rev = "24e7e2658e09ac00c8e6cbb48bebe6d10f8fb69d" }
78+
kona-node-service = { git = "https://github.com/op-rs/kona", rev = "24e7e2658e09ac00c8e6cbb48bebe6d10f8fb69d" }
79+
kona-providers-alloy = { git = "https://github.com/op-rs/kona", rev = "24e7e2658e09ac00c8e6cbb48bebe6d10f8fb69d" }
80+
kona-cli = { git = "https://github.com/op-rs/kona", rev = "24e7e2658e09ac00c8e6cbb48bebe6d10f8fb69d" }
81+
kona-peers = { git = "https://github.com/op-rs/kona", rev = "24e7e2658e09ac00c8e6cbb48bebe6d10f8fb69d" }
82+
kona-sources = { git = "https://github.com/op-rs/kona", rev = "24e7e2658e09ac00c8e6cbb48bebe6d10f8fb69d" }
83+
7084
# reth
7185
reth-ipc = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.3" }
7286
reth-evm = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.3" }
@@ -188,21 +202,23 @@ alloy-rpc-types-beacon = { version = "1.0.41", features = ["ssz"] }
188202
# op-alloy
189203
op-alloy-flz = { version = "0.13.1", default-features = false }
190204
op-alloy-network = { version = "0.22.0", default-features = false }
205+
op-alloy-provider = { version = "0.22.0", default-features = false }
191206
op-alloy-rpc-types = { version = "0.22.0", default-features = false }
192207
op-alloy-consensus = { version = "0.22.0", default-features = false }
193208
op-alloy-rpc-jsonrpsee = { version = "0.22.0", default-features = false }
194209
op-alloy-rpc-types-engine = { version = "0.22.0", default-features = false }
195-
op-alloy-provider = { version = "0.22.0", default-features = false }
196210
alloy-op-evm = { version = "0.23.3", default-features = false }
197211
alloy-op-hardforks = "0.4.4"
198212

213+
# rollup-boost
214+
rollup-boost = { git = "https://github.com/flashbots/rollup-boost", tag = "v0.7.11" }
215+
# rollup-boost version that matches kona's dependency (used for consensus binary)
216+
rollup-boost-kona = { package = "rollup-boost", git = "https://github.com/flashbots/rollup-boost.git", rev = "7fda98f" }
217+
218+
199219
# op-revm
200220
op-revm = { version = "12.0.2", default-features = false }
201221

202-
# kona
203-
kona-registry = "0.4.5"
204-
kona-engine = { git = "https://github.com/op-rs/kona", rev = "24e7e2658e09ac00c8e6cbb48bebe6d10f8fb69d" }
205-
206222
# tokio
207223
tokio = "1.48.0"
208224
tokio-stream = "0.1.17"
@@ -212,7 +228,6 @@ tokio-tungstenite = { version = "0.28.0", features = ["native-tls"] }
212228
futures = "0.3.31"
213229
reqwest = "0.12.25"
214230
futures-util = "0.3.31"
215-
backon = "1.5"
216231

217232
# rpc
218233
jsonrpsee = "0.26.0"
@@ -223,6 +238,11 @@ vergen = "9.0.6"
223238
vergen-git2 = "1.0.7"
224239
clap = { version = "4.5.53", features = ["derive", "env", "string"] }
225240

241+
# Tracing
242+
tracing = "0.1.43"
243+
tracing-appender = "0.2.4"
244+
tracing-subscriber = "0.3.22"
245+
226246
# Metrics
227247
metrics = { version = "0.24.3", default-features = false }
228248
prometheus = { version = "0.14.0", default-features = false }
@@ -233,6 +253,8 @@ metrics-exporter-prometheus = { version = "0.18.1", default-features = false }
233253
url = "2.5.7"
234254
lru = "0.16.3"
235255
rand = "0.9.2"
256+
strum = "0.27.2"
257+
backon = "1.6.0"
236258
uuid = "1.19.0"
237259
time = { version = "0.3.44", features = ["macros", "formatting", "parsing"] }
238260
rayon = "1.11"
@@ -245,21 +267,21 @@ rstest = "0.26.1"
245267
serde = "1.0.228"
246268
rustls = "0.23.35"
247269
httpmock = "0.8.2"
248-
tracing = "0.1.43"
249270
arc-swap = "1.7.1"
250271
once_cell = "1.21.3"
251272
itertools = "0.14.0"
252273
derive_more = "2.1.0"
253274
serde_json = "1.0.145"
254275
metrics-derive = "0.1.0"
255-
tracing-subscriber = "0.3.22"
256-
tracing-appender = "0.2"
257276
thiserror = "2.0"
258277
async-trait = "0.1.83"
259278
parking_lot = "0.12.3"
260279
auto_impl = "1.2.0"
261280
serde_with = "3.8.1"
262281
secp256k1 = "0.30"
282+
libp2p = "0.56.0"
283+
libp2p-identity = "0.2.12"
284+
discv5 = "0.10"
263285
either = { version = "1.15.0", default-features = false }
264286
tokio-util = { version = "0.7.4", features = ["codec"] }
265287
warp = "0.3.7"

bin/consensus/Cargo.toml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,34 @@ workspace = true
1515
[dependencies]
1616
# Workspace
1717
base-cli-utils.workspace = true
18+
base-client-cli.workspace = true
19+
base-jwt = { workspace = true, features = ["engine-validation"] }
20+
21+
# Kona
22+
kona-genesis.workspace = true
23+
kona-registry.workspace = true
24+
kona-disc = { workspace = true, features = ["metrics"] }
25+
kona-derive = { workspace = true, features = ["metrics"] }
26+
kona-engine = { workspace = true, features = ["metrics"] }
27+
kona-gossip = { workspace = true, features = ["metrics"] }
28+
kona-node-service = { workspace = true, features = ["metrics"] }
29+
kona-providers-alloy = { workspace = true, features = ["metrics"] }
30+
31+
# Reth (for serde feature on transitive dependencies)
32+
reth-optimism-node.workspace = true
1833

1934
# CLI
2035
clap.workspace = true
2136
eyre.workspace = true
37+
strum.workspace = true
38+
serde_json.workspace = true
39+
40+
# Tracing
41+
tracing.workspace = true
42+
tracing-subscriber = { workspace = true, features = ["fmt", "env-filter"] }
43+
44+
# Metrics
45+
metrics.workspace = true
2246

2347

2448
[build-dependencies]

0 commit comments

Comments
 (0)