Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
212 commits
Select commit Hold shift + click to select a range
bb03578
chore: Move FillTxEnv::fill_tx_env into SignedTransaction trait and i…
garwahl Nov 4, 2024
9814041
primitives: rm useless `OP_` constants (#12298)
tcoratger Nov 4, 2024
56b7687
primitives: rm alloy `Withdrawal` reexport (#12296)
tcoratger Nov 4, 2024
566f2b4
primitives: rm alloy `BlockHashOrNumber` reexport (#12302)
tcoratger Nov 4, 2024
0475af8
primitives: rm alloy `BlockId` reexport (#12303)
tcoratger Nov 4, 2024
3fe2234
feat(engine): add StateRootTask skeleton (#12305)
fgimenez Nov 4, 2024
d5f0103
primitives: rm alloy `BlockNumHash` reexport (#12304)
tcoratger Nov 4, 2024
967cbc4
primitives: rm alloy `Signature` reexport (#12313)
tcoratger Nov 5, 2024
e317340
renamed OptimismEngineValidator to OpEngineValidator (#12312)
stevencartavia Nov 5, 2024
4222cbe
chore: switch op to new engine (#12329)
mattsse Nov 5, 2024
556995f
chore: limit initial status size (#12324)
mattsse Nov 5, 2024
441ddbf
primitives: rm more alloy block reexports (#12308)
tcoratger Nov 5, 2024
5c2e941
chore: 1.1.1 (#12334)
mattsse Nov 5, 2024
15c230b
primitives: rm alloy `BlobTransactionValidationError` reexport (#12311)
tcoratger Nov 5, 2024
5af5517
feat: restructure op builder (#12229)
mattsse Nov 5, 2024
0e83203
primitives: rm alloy `BlobTransactionSidecar` reexport (#12310)
tcoratger Nov 5, 2024
39a667b
feat: graceful incoming connection closing (#12282)
greged93 Nov 5, 2024
ab03775
feat: make it configurable how txs are yielded (#12337)
mattsse Nov 5, 2024
6ddb3ea
feat: mev_simBundle (#12218)
SkandaBhat Nov 5, 2024
3f02e18
fix: add dev feature in error message to generate test vectors (#12084)
edisontim Nov 6, 2024
0c7700f
feat(payload) : optimize new payload job by fetching only header hash…
lean-apple Nov 6, 2024
e34a88d
renamed OptimismNode to OpNode (#12338)
stevencartavia Nov 6, 2024
1a091a7
fix: allow SOURCE_DATE_EPOCH to be overridable (#12342)
eniko1556 Nov 6, 2024
f1ac9b8
refactor(rpc): simplifications with `DatabaseRef` calls (#12294)
tcoratger Nov 6, 2024
8ec3af6
test(tokio-util): add unit tests for `RateLimit` (#12297)
tcoratger Nov 6, 2024
4bac153
feat: add gas averages over time into grafana (#12237)
edisontim Nov 6, 2024
4048117
Track time diff between `new_payload` and FCU (#12245)
stevencartavia Nov 6, 2024
098fa7f
feat(engine): use execute_with_state_hook in ExecutorMetrics (#12316)
fgimenez Nov 6, 2024
d8edf9c
chore(sdk): define `FullBlock` trait (#12326)
emhane Nov 6, 2024
660ca38
chore(sdk): define `FullSignedTx` trait (#12327)
emhane Nov 6, 2024
b5f8c72
chore: misc trait bounds (#12347)
mattsse Nov 6, 2024
12b0637
refactor(trie): small refactor in `HashedPostState::from_reverts` (#1…
tcoratger Nov 6, 2024
38fdc93
feat: bump alloy (#12215)
klkvr Nov 6, 2024
c2e8e2f
Add `queued_outgoing_messages` panel for grafana (#12306)
syjn99 Nov 6, 2024
dc0a600
fix(pool-args): `saturating_mul` max sizes to avoid overflow (#12350)
hai-rise Nov 6, 2024
e084bed
renamed OptimismAddOns to OpAddOns (#12348)
stevencartavia Nov 6, 2024
2c5ba73
feat(engine): integrate executor with StateRootTask (#12335)
fgimenez Nov 6, 2024
fe2b028
feat: use 1559 functions directly (#12356)
mattsse Nov 6, 2024
302ed29
perf(`EthBuiltPayload`): `Arc` `SealedBlock` (#12351)
hai-rise Nov 6, 2024
2d94529
renamed OptimismEngineValidatorBuilder to OpEngineValidatorBuilder (#…
stevencartavia Nov 6, 2024
8e8a1a8
renamed OptimismPayloadBuilderError to OpPayloadBuilderError (#12364)
stevencartavia Nov 7, 2024
29a9e97
feat: add `PrimitiveSignature` to `test-vectors compact` tests (#12366)
joshieDo Nov 7, 2024
d31e1d6
chore(sdk): Add `NodePrimitives::Receipt` (#12357)
emhane Nov 7, 2024
037dffe
perf(`OpBuiltPayload`): `Arc` `SealedBlock` (#12361)
hai-rise Nov 7, 2024
6d05788
perf(`default_ethereum_payload`): reuse `Evm` between txs (#12365)
hai-rise Nov 7, 2024
581cef3
feat(rpc/admin): return deposit_contract_address for the admin_NodeIn…
jsvisa Nov 7, 2024
f0a1f91
New panel for new_payload_forkchoice_updated_time_diff metric (#12363)
stevencartavia Nov 7, 2024
581a2f1
refactor(rpc): unify system caller invocations (#12360)
klkvr Nov 7, 2024
eab1a72
perf(`OpPayloadBuilderCtx`): reuse `Evm` between txs (#12369)
hai-rise Nov 7, 2024
cf72b6f
chore: move helper methods from `DatabaseProvider` to `DBProvider` as…
joshieDo Nov 7, 2024
473e172
chore: change "Reporting a Vulnerability" to "Report a Vulnerability"…
wheval Nov 7, 2024
764371d
test(eth-engine): add unit tests for `payload_id` method (#12295)
tcoratger Nov 7, 2024
9596b1c
chore: rm reth-provider dep (#12376)
mattsse Nov 7, 2024
37e1f77
chore: remove unused deconstruction (#12377)
greged93 Nov 7, 2024
190a1d8
feat(trie): reveal storage slots and calculate storage root in sparse…
shekhirin Nov 7, 2024
cf095a7
chore: reorder super (#12380)
mattsse Nov 7, 2024
b1642f9
feat(payload): add support for stack of payload builders (#11004)
aroralanuk Nov 7, 2024
e911fe9
renamed OptimismBlockExecutionError to OpBlockExecutionError (#12383)
stevencartavia Nov 7, 2024
d0baf92
chore: improve deps for payload prims (#12374)
mattsse Nov 7, 2024
29da7d7
fix: `eth_getProof` response (#12370)
klkvr Nov 7, 2024
d19032f
chore: remove auto-seal consensus (#12385)
klkvr Nov 7, 2024
dbe8c83
renamed OptimismInvalidTransactionError to OpInvalidTransactionError …
stevencartavia Nov 7, 2024
eb7bb08
fix: remove independent tx from all (#12387)
mattsse Nov 7, 2024
c7b6a35
feat: bump alloy (#12391)
klkvr Nov 8, 2024
87f328f
replace BuilderBlockValidationRequestV3 with alloy type (#12396)
stevencartavia Nov 8, 2024
c5ab424
chore: remove redundant words in comment (#12394)
wangjingcun Nov 8, 2024
f373efe
refactor: phase out alloy-rpc-types usage (#12395)
hoank101 Nov 8, 2024
462540f
fix: pending transaction ordering (#12382)
klkvr Nov 8, 2024
9f6f63d
CLI parameter to specify the broadcast channel capacity of PendingPoo…
stevencartavia Nov 8, 2024
02d2593
feat(transaction-pool): chaining & static txs for best transactions t…
sevazhidkov Nov 8, 2024
bce7031
feat: allow generic values in `tables!` macro (#12400)
klkvr Nov 8, 2024
32ebb18
chore: rm duplicated cfg (#12406)
mattsse Nov 8, 2024
74d7fe3
feat(rpc): optimize block validation with state caching (#12299)
lean-apple Nov 8, 2024
86230d9
chore: include path in panic (#12407)
mattsse Nov 8, 2024
0da914e
chore: enable `dbg_macro` lint (#12409)
hai-rise Nov 8, 2024
f03b762
feat: introduce ParallelProof (#12403)
fgimenez Nov 8, 2024
ba4f169
chore(db): add log for read transaciton monitor sleep time (#12408)
rkrasiuk Nov 8, 2024
fc484b7
test: fix test vectors (#12411)
mattsse Nov 8, 2024
5cfe9a9
renamed OptimismHardfork to OpHardfork (#12410)
stevencartavia Nov 8, 2024
f86efcc
chore: clippy happy (#12419)
mattsse Nov 9, 2024
7a65cce
chore: rm fqs for NodeCore (#12418)
mattsse Nov 9, 2024
b5fce61
ecies: use align_num value (#12139)
nkysg Nov 9, 2024
d2f494b
primitives: replace primitive `Withdrawals` with alloy (#12119)
tcoratger Nov 9, 2024
08451ef
chore: rm unused file (#12420)
mattsse Nov 9, 2024
430fe0d
chore(sdk): Add `NodePrimitives::Transaction` and `NodePrimitives::Si…
emhane Nov 9, 2024
a299f50
chore(sdk): payload builder AT on `NodeComponents` and `FullNodeCompo…
emhane Nov 9, 2024
ae257f5
chore: restrict payload builder error type (#12423)
mattsse Nov 9, 2024
59ebeba
primitives: rm alloy `Withdrawals` reexport (#12421)
tcoratger Nov 9, 2024
1b1f0f3
chore: add Sync to PayloadBuilder (#12425)
mattsse Nov 9, 2024
7eaa0a8
chore: add PayloadBuilder to RpcNodeCore (#12428)
mattsse Nov 9, 2024
c1b4fd8
refactor: remove trait bound on `TxType` (#12379)
ftupas Nov 10, 2024
23ec0af
chore(sdk): auto trait bounds `NodePrimitives` (#12398)
emhane Nov 10, 2024
7110397
chore(deps): weekly `cargo update` (#12433)
github-actions[bot] Nov 10, 2024
3774100
chore(sdk): impl `SignedTransaction` for `TransactionSigned` (#12187)
emhane Nov 10, 2024
b893a88
chore: fix deny (#12439)
mattsse Nov 10, 2024
365f6a1
feat: `NetworkPrimitives` (#12435)
klkvr Nov 11, 2024
de68130
chore(trie): rename reth-trie-parallel modules (#12444)
fgimenez Nov 11, 2024
9ff8097
renamed OptimismHardforks to OpHardforks (#12441)
stevencartavia Nov 11, 2024
56b5937
Move payload_attributes function to trait (#12427)
stevencartavia Nov 11, 2024
5d5f442
chore(sdk): define helper trait `FullNodePrimitives` (#12331)
emhane Nov 11, 2024
78e70d6
chore: move `new_payload_v2` into type EngineAPI (#12431)
TropicalDog17 Nov 11, 2024
cdce7ee
chore: move `new_payload_v1` into type EngineAPI (#12430)
TropicalDog17 Nov 11, 2024
29b9238
[refactor] move `new_payload_v3` into EngineAPI (#12442)
kien6034 Nov 11, 2024
b0329ee
chore(sdk): impl `Receipt` for `reth_primitives::Receipt` (#12446)
emhane Nov 11, 2024
0014248
[refactor] move `new_payload_v4` into EngineAPI (#12445)
kien6034 Nov 11, 2024
9773635
chore(sdk): make `Receipts` generic over receipt (#12447)
emhane Nov 11, 2024
c4f10bd
feat(spec): Holocene activation time for {OP/Base} Sepolia (#12453)
clabby Nov 11, 2024
11fd5aa
chore(sdk): define new `BlockHeader` trait (#12452)
emhane Nov 11, 2024
24b3e63
feat: make Consensus trait generic over block parts (#12451)
klkvr Nov 11, 2024
eccff7d
chore(reth_primitives): Use trait for `size` methods in primitive typ…
TropicalDog17 Nov 11, 2024
2f8a2f0
chore: remove unnecessary clone (#12455)
malik672 Nov 11, 2024
5edca40
feat(op): define OpTxType (#12443)
ozgunozerk Nov 12, 2024
f38503c
chore: move `(Full)NodePrimitives` to `reth-primitive-traits` (#12461)
joshieDo Nov 12, 2024
c261532
chore: move trie functions to alloy (#12438)
c0np4nn4 Nov 12, 2024
bad7a4f
use result for `TransactionCompact::fill`. (#12170)
lakshya-sky Nov 12, 2024
b5f7eca
chore(sdk): make `ExecutionOutcome` generic over receipt (#12448)
emhane Nov 12, 2024
a2e1197
chore(sdk): Add `InMemorySize` as super trait of data primitive trait…
emhane Nov 12, 2024
9f29107
chore(sdk): add `NodePrimitives::TxType` (#12332)
emhane Nov 12, 2024
179aa04
test(trie): add ParallelProof unit test (#12413)
fgimenez Nov 12, 2024
6c1833d
chore: remove unessarcy clone (#12463)
malik672 Nov 12, 2024
c44edf5
make PayloadStore operate on PayloadBuilder (#12460)
stevencartavia Nov 12, 2024
a620d7c
chore(deps): bump alloy to 0.6.3 (#12468)
emhane Nov 12, 2024
3a337cd
chore(deps): Update op-alloy to 0.6.4 in manifest (#12472)
emhane Nov 12, 2024
aece53a
feat: make downloaders and clients generic over block parts (#12469)
klkvr Nov 12, 2024
0cd34f9
feat: add ovm `BlockFileCodec` (#12247)
lean-apple Nov 12, 2024
e6a6fc4
chore: only fetch deposit info for deposit tx (#12474)
mattsse Nov 12, 2024
4a8eb7a
chore: add DUPSORT trait const (#12477)
mattsse Nov 12, 2024
fa5daef
chore: Move `HistoryWriter` trait to `storage-api` and reexport it fr…
PanGan21 Nov 12, 2024
b399576
feat: make more network components generic over primitives (#12481)
klkvr Nov 12, 2024
9884167
chore: move standalone types to types crate (#12483)
mattsse Nov 12, 2024
b6558f6
chore: Update Holocene timestamp for Sepolia (#12479)
clabby Nov 12, 2024
8221e5b
chore: Move`StatsReader` trait to storage-api and reexport it from ol…
PanGan21 Nov 12, 2024
3c56686
feat(rpc): add compression to JSON-RPC (#12352)
TheDhejavu Nov 12, 2024
115a20e
fix: deposit tx gasPrice must be 0 (#12486)
mattsse Nov 12, 2024
a71dd9c
chore: introduce tuple type for pruned info (#12484)
mattsse Nov 12, 2024
ce50370
primitives: rm alloy `Withdrawal` reexport (#12487)
tcoratger Nov 12, 2024
a96dee1
chore: bump alloy 064 (#12488)
mattsse Nov 13, 2024
b0a39e8
chore: import static file types directly (#12490)
mattsse Nov 13, 2024
cef7ec8
Move CanonChainTracker to storage-api (#12491)
stevencartavia Nov 13, 2024
1ce067b
chore: rm direct reth-provider dep (#12492)
mattsse Nov 13, 2024
2f794b6
chore: rm unhinged attributes ordering (#12498)
mattsse Nov 13, 2024
b7e8d5a
chore: add SealedHeader::seal (#12497)
mattsse Nov 13, 2024
5c62d68
chore: rm unused error variants (#12499)
mattsse Nov 13, 2024
39392e9
chore: only issue single header request (#12496)
mattsse Nov 13, 2024
03f3646
chore: use let some notation (#12494)
mattsse Nov 13, 2024
bf44c97
feat: add support for `eth_signTransaction` (#12500)
ashutoshvarma Nov 13, 2024
281c415
chore: reorder validation items (#12503)
mattsse Nov 13, 2024
68e7ad6
chore(dep): bump alloy-trie (#12511)
fgimenez Nov 13, 2024
527767c
chore: remove unused trait bound for evmenv (#12505)
mattsse Nov 13, 2024
9313737
primitives: use `SealedHeader::seal` (#12507)
tcoratger Nov 13, 2024
9e77d91
chore(sdk): improve usability tx primitive traits (#12437)
emhane Nov 13, 2024
e6f3191
chore: rm cfg imports (#12518)
mattsse Nov 13, 2024
001f389
primitives: rm alloy `Header` reexport (#12515)
tcoratger Nov 13, 2024
7a1698c
chore(utils): Util function for headers request (#12501)
TheDhejavu Nov 13, 2024
413d651
chore: simplify import path (#12523)
htiennv Nov 13, 2024
0d850e7
fix: consume all payload variants (#12520)
mattsse Nov 13, 2024
c326708
feat: add simple kurtosis test for OP stack (#12506)
klkvr Nov 13, 2024
d505089
tx-pool: rm useless allow deprecated (#12526)
tcoratger Nov 13, 2024
457ac5f
fix: typos in documentation files (#12528)
leopardracer Nov 14, 2024
68a6ada
tx-pool: add `PoolUpdateKind` for `CanonicalStateUpdate` (#12525)
tcoratger Nov 14, 2024
7bd7c37
feat: display warning for op-mainnet launch without pre-Bedrock state…
stevencartavia Nov 14, 2024
5c655e4
introduce standalone estimate gas type (#12344)
stevencartavia Nov 14, 2024
ff6b78a
feat: move body writing to `BlockWriter` trait (#12538)
klkvr Nov 14, 2024
3154a4f
Documentation Improvements: Grammar Corrections and Clarity Enhanceme…
donatik27 Nov 14, 2024
77e687c
feat: relax `BodyStage` bounds (#12539)
klkvr Nov 14, 2024
c5d1b81
chore: add missing debugs for pool types (#12546)
mattsse Nov 14, 2024
4a0bc37
chore: rm reth testing utils dep from reth-primitives-traits (#12542)
mattsse Nov 14, 2024
217d9f7
chore(sdk): Add trait bound `Compact` on `<T as FullTransaction>::Typ…
emhane Nov 14, 2024
b1635fc
chore(sdk): make `BlockBatchRecord` generic over receipt (#12449)
emhane Nov 14, 2024
bd29f82
chore: replace reth-chainspec dep with alloy chains (#12550)
mattsse Nov 14, 2024
a7bb1d1
chore: remove constants reexport (#12549)
mattsse Nov 14, 2024
870ffae
chore: use crates directly in eth-wire (#12554)
mattsse Nov 14, 2024
28a5b63
chore: move gas_spent_by_transactions to traits (#12541)
mattsse Nov 14, 2024
a534db8
refactor: use `DBProvider` in `HistoricalStateProvider` (#12556)
klkvr Nov 14, 2024
b1729d2
feat: impl block for sealedblock (#12555)
mattsse Nov 14, 2024
d8af28b
refactor: use `DBProvider` in `LatestStateProvider` (#12557)
klkvr Nov 14, 2024
d028c1c
refactor: don't reference `StaticFileProvider` in `static_file::Segme…
klkvr Nov 14, 2024
61d32e9
fix(rpc): remove reference to preimage bool in debug_executionWitness…
Rjected Nov 14, 2024
7a7a6de
primitive-traits: simplify `SealedHeader::default` (#12563)
tcoratger Nov 15, 2024
28478a5
primitives: rm alloy `HOLESKY_GENESIS_HASH` reexport (#12562)
tcoratger Nov 15, 2024
1aa316e
fmt(primitives): group pub use transaction (#12561)
tcoratger Nov 15, 2024
93ec6d4
net: use `BlockWithParent` in `SyncTarget::Gap` (#12514)
tcoratger Nov 15, 2024
44964ac
engine-primitives: make engine-tree independent of beacon-consensus c…
tcoratger Nov 15, 2024
cd9da55
chore: extract witness recorder helper type (#12566)
mattsse Nov 15, 2024
72a52d5
feat: make `StaticFileProvider` generic over `NodePrimitives` (#12565)
klkvr Nov 15, 2024
305a1ce
feat: introduce debug witness api (#12567)
mattsse Nov 15, 2024
efa350d
ci: exclude more crates for op tests (#12568)
mattsse Nov 15, 2024
56826cb
fix: remove redundant check in bodies stage (#12569)
klkvr Nov 15, 2024
5f66fa4
chore(sdk): improve usability `TxType` trait (#12548)
emhane Nov 15, 2024
ac5976f
feat: implement Compact for OpTxType (#12537)
kamuik16 Nov 15, 2024
841267d
feat: add helpers to obtain the execution witness for a payload (#12573)
mattsse Nov 15, 2024
6e00e58
feat: add payload witness fn (#12579)
mattsse Nov 15, 2024
f0b8b9b
feat: add tx_number consistency check to StaticFileProviderRW (#12570)
klkvr Nov 15, 2024
b31b1ea
feat: add op debug witness api (#12583)
mattsse Nov 15, 2024
02237bf
feat: add contains fns to transport rpc modules (#12593)
mattsse Nov 16, 2024
5276093
chore(util): Add reth payload util (#12590)
TheDhejavu Nov 16, 2024
c160005
rm generics when useless (#12581)
tcoratger Nov 16, 2024
7745046
Fix grammar in MDBX documentation (#12580)
Hopium21 Nov 16, 2024
2dc9a06
chore(sdk): add NetworkPrimitives for NetworkManager (#12530)
lakshya-sky Nov 16, 2024
fc97a0c
chore: make clippy happy (#12594)
mattsse Nov 16, 2024
e182df7
chore(sdk): Remove duplicate trait `BlockHeader` (#12584)
emhane Nov 16, 2024
3614a37
test(tx-pool): add more unit tests for parked pool (#12591)
tcoratger Nov 16, 2024
1945cd8
chore: move hashing writer trait (#12597)
mattsse Nov 16, 2024
d52c719
chore: move triewriter trait (#12598)
mattsse Nov 16, 2024
d9ed07a
chore: remove revm-primitives re-export (#12599)
mattsse Nov 16, 2024
dda1906
rm more generics when useless (#12595)
tcoratger Nov 16, 2024
735eb4b
chore(cli): unify trait bounds (#12604)
klkvr Nov 16, 2024
bf92a5f
feat: split reth-payload-primitives (#12600)
fgimenez Nov 16, 2024
2f3fde8
feat: fix WASM build for crates dependent on reth-payload-primitives …
fgimenez Nov 17, 2024
7ae8ce1
chore(sdk): Add blanket impls for refs to prim traits (#12613)
emhane Nov 17, 2024
c3e6af4
Merge branch 'main' into chore-merge-upstream-7ae8ce1d0
Thegaram Nov 17, 2024
3540a83
update fork base commit
Thegaram Nov 17, 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
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .config/zepter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ workflows:
# Do not try to add a new section into `[features]` of `A` only because `B` expose that feature. There are edge-cases where this is still needed, but we can add them manually.
"--left-side-feature-missing=ignore",
# Ignore the case that `A` it outside of the workspace. Otherwise it will report errors in external dependencies that we have no influence on.

"--left-side-outside-workspace=ignore",
# Auxillary flags:
"--offline",
Expand Down
7 changes: 0 additions & 7 deletions .github/assets/check_wasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ exclude_crates=(
# The following are not working yet, but known to be fixable
reth-exex-types # https://github.com/paradigmxyz/reth/issues/9946
# The following require investigation if they can be fixed
reth-auto-seal-consensus
reth-basic-payload-builder
reth-beacon-consensus
reth-bench
reth-blockchain-tree
reth-chain-state
reth-cli
reth-cli-commands
reth-cli-runner
Expand All @@ -27,13 +25,11 @@ exclude_crates=(
reth-dns-discovery
reth-downloaders
reth-e2e-test-utils
reth-engine-primitives
reth-engine-service
reth-engine-tree
reth-engine-util
reth-eth-wire
reth-ethereum-cli
reth-ethereum-engine-primitives
reth-ethereum-payload-builder
reth-etl
reth-exex
Expand All @@ -42,7 +38,6 @@ exclude_crates=(
reth-net-nat
reth-network
reth-node-api
reth-node-types
reth-node-builder
reth-node-core
reth-node-ethereum
Expand All @@ -52,8 +47,6 @@ exclude_crates=(
reth-optimism-node
reth-optimism-payload-builder
reth-optimism-rpc
reth-payload-builder
reth-payload-primitives
reth-rpc
reth-rpc-api
reth-rpc-api-testing-util
Expand Down
15 changes: 15 additions & 0 deletions .github/assets/kurtosis_op_network_params.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ethereum_package:
participants:
- el_type: reth
cl_type: lighthouse
optimism_package:
chains:
- participants:
- el_type: op-geth
cl_type: op-node
- el_type: op-reth
el_image: "ghcr.io/paradigmxyz/op-reth:kurtosis-ci"
cl_type: op-node
batcher_params:
extra_params:
- "--throttle-interval=0"
119 changes: 119 additions & 0 deletions .github/workflows/kurtosis-op.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
# Runs simple OP stack setup in Kurtosis

name: kurtosis-op

on:
workflow_dispatch:
schedule:
# every day
- cron: "0 1 * * *"

env:
CARGO_TERM_COLOR: always

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
prepare-reth:
if: github.repository == 'paradigmxyz/reth'
timeout-minutes: 45
runs-on:
group: Reth
steps:
- uses: actions/checkout@v4
- run: mkdir artifacts
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Build reth
run: |
cargo build --features optimism,asm-keccak --profile hivetests --bin op-reth --manifest-path crates/optimism/bin/Cargo.toml --locked
mkdir dist && cp ./target/hivetests/op-reth ./dist/reth
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and export reth image
uses: docker/build-push-action@v6
with:
context: .
file: .github/assets/hive/Dockerfile
tags: ghcr.io/paradigmxyz/op-reth:kurtosis-ci
outputs: type=docker,dest=./artifacts/reth_image.tar
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Upload reth image
uses: actions/upload-artifact@v4
with:
name: artifacts
path: ./artifacts

test:
timeout-minutes: 60
strategy:
fail-fast: false
name: run kurtosis
runs-on:
group: Reth
needs:
- prepare-reth
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Download reth image
uses: actions/download-artifact@v4
with:
name: artifacts
path: /tmp

- name: Load Docker image
run: |
docker load -i /tmp/reth_image.tar &
wait
docker image ls -a

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Run kurtosis
run: |
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list
sudo apt update
sudo apt install kurtosis-cli
kurtosis engine start
kurtosis run --enclave op-devnet github.com/ethpandaops/optimism-package --args-file .github/assets/kurtosis_op_network_params.yaml
ENCLAVE_ID=$(curl http://127.0.0.1:9779/api/enclaves | jq --raw-output 'keys[0]')
GETH_PORT=$(curl "http://127.0.0.1:9779/api/enclaves/$ENCLAVE_ID/services" | jq '."op-el-1-op-geth-op-node-op-kurtosis".public_ports.rpc.number')
RETH_PORT=$(curl "http://127.0.0.1:9779/api/enclaves/$ENCLAVE_ID/services" | jq '."op-el-2-op-reth-op-node-op-kurtosis".public_ports.rpc.number')
echo "GETH_RPC=http://127.0.0.1:$GETH_PORT" >> $GITHUB_ENV
echo "RETH_RPC=http://127.0.0.1:$RETH_PORT" >> $GITHUB_ENV

- name: Assert that clients advance
run: |
for i in {1..100}; do
sleep 5
BLOCK_GETH=$(cast bn --rpc-url $GETH_RPC)
BLOCK_RETH=$(cast bn --rpc-url $RETH_RPC)

if [ $BLOCK_GETH -ge 100 ] && [ $BLOCK_RETH -ge 100 ] ; then exit 0; fi
echo "Waiting for clients to advance..., Reth: $BLOCK_RETH Geth: $BLOCK_GETH"
done
exit 1


notify-on-error:
needs: test
if: failure()
runs-on:
group: Reth
steps:
- name: Slack Webhook Action
uses: rtCamp/action-slack-notify@v2
env:
SLACK_COLOR: ${{ job.status }}
SLACK_MESSAGE: "Failed run: https://github.com/paradigmxyz/reth/actions/runs/${{ github.run_id }}"
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
4 changes: 2 additions & 2 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ jobs:
partition: 2
total_partitions: 2
- type: optimism
args: --features "asm-keccak optimism" --locked
args: --features "asm-keccak optimism" --locked --exclude reth --exclude reth-bench --exclude "example-*"
partition: 1
total_partitions: 2
- type: optimism
args: --features "asm-keccak optimism" --locked
args: --features "asm-keccak optimism" --locked --exclude reth --exclude reth-bench --exclude "example-*"
partition: 2
total_partitions: 2
- type: book
Expand Down
Loading
Loading