mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: use a binary for sync tests (#9071)
This commit is contained in:
12
.github/workflows/eth-sync.yml
vendored
12
.github/workflows/eth-sync.yml
vendored
@ -32,19 +32,19 @@ jobs:
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
cache-on-failure: true
|
||||
- name: Build reth
|
||||
run: |
|
||||
cargo install --features asm-keccak,jemalloc --path bin/reth
|
||||
- name: Run sync
|
||||
run: |
|
||||
cargo run --release --features asm-keccak,jemalloc,min-error-logs --bin reth \
|
||||
-- node \
|
||||
reth node \
|
||||
--debug.tip 0x91c90676cab257a59cd956d7cb0bceb9b1a71d79755c23c7277a0697ccfaf8c4 \
|
||||
--debug.max-block 100000 \
|
||||
--debug.terminate
|
||||
- name: Verify the target block hash
|
||||
run: |
|
||||
cargo run --release --bin reth \
|
||||
-- db get static-file headers 100000 \
|
||||
reth db get static-file headers 100000 \
|
||||
| grep 0x91c90676cab257a59cd956d7cb0bceb9b1a71d79755c23c7277a0697ccfaf8c4
|
||||
- name: Run stage unwind for 100 blocks
|
||||
run: |
|
||||
cargo run --release --bin reth \
|
||||
-- stage unwind num-blocks 100
|
||||
reth stage unwind num-blocks 100
|
||||
|
||||
12
.github/workflows/op-sync.yml
vendored
12
.github/workflows/op-sync.yml
vendored
@ -32,21 +32,21 @@ jobs:
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
cache-on-failure: true
|
||||
- name: Build op-reth
|
||||
run: |
|
||||
cargo install --features asm-keccak,jemalloc,optimism --bin op-reth --path bin/reth
|
||||
- name: Run sync
|
||||
# https://basescan.org/block/10000
|
||||
run: |
|
||||
cargo run --release --features asm-keccak,jemalloc,min-error-logs,optimism --bin op-reth \
|
||||
-- node \
|
||||
op-reth node \
|
||||
--chain base \
|
||||
--debug.tip 0xbb9b85352c7ebca6ba8efc63bd66cecd038c92ec8ebd02e153a3e0b197e672b7 \
|
||||
--debug.max-block 10000 \
|
||||
--debug.terminate
|
||||
- name: Verify the target block hash
|
||||
run: |
|
||||
cargo run --release --bin reth \
|
||||
-- db get static-file headers 10000 \
|
||||
op-reth db --chain base get static-file headers 100000 \
|
||||
| grep 0xbb9b85352c7ebca6ba8efc63bd66cecd038c92ec8ebd02e153a3e0b197e672b7
|
||||
- name: Run stage unwind for 100 blocks
|
||||
run: |
|
||||
cargo run --release --bin reth \
|
||||
-- stage unwind num-blocks 100
|
||||
op-reth stage --chain base unwind num-blocks 100
|
||||
|
||||
Reference in New Issue
Block a user