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

feat: use a binary for sync tests #9071

Merged
merged 1 commit into from
Jun 24, 2024
Merged
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
12 changes: 6 additions & 6 deletions .github/workflows/eth-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 6 additions & 6 deletions .github/workflows/op-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading