Skip to content

Commit 2814adc

Browse files
authored
Merge branch 'main' into feat-simplify-gas-price-oracle
2 parents 7294e35 + 3dce7a7 commit 2814adc

File tree

42 files changed

+1691
-14561
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1691
-14561
lines changed

.github/workflows/sync.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: sync
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
env:
12+
CARGO_TERM_COLOR: always
13+
14+
jobs:
15+
sync:
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 25
18+
env:
19+
RUST_BACKTRACE: 1
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: rui314/setup-mold@v1
23+
- uses: dtolnay/rust-toolchain@stable
24+
- uses: Swatinem/rust-cache@v2
25+
with:
26+
cache-on-failure: true
27+
- name: Run consolidation test
28+
env:
29+
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }}
30+
RUST_LOG: "sqlx=off,info,scroll::engine=debug"
31+
run: |
32+
cargo test --release -p rollup-node test_should_consolidate_to_block_15k

.github/workflows/test.yaml

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -51,40 +51,7 @@ jobs:
5151
with:
5252
5353
- name: Run integration tests
54-
run: cargo nextest run --all-features --workspace --locked --no-tests=pass -E 'kind(test)'
55-
56-
sync:
57-
runs-on: ubuntu-latest
58-
timeout-minutes: 15
59-
env:
60-
RUST_BACKTRACE: 1
61-
steps:
62-
- uses: actions/checkout@v4
63-
- uses: rui314/setup-mold@v1
64-
- uses: dtolnay/rust-toolchain@stable
65-
- uses: Swatinem/rust-cache@v2
66-
with:
67-
cache-on-failure: true
68-
- uses: foundry-rs/foundry-toolchain@v1
69-
- name: Start rollup node
70-
env:
71-
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }}
72-
run: |
73-
cargo run --bin rollup-node --release -- \
74-
node --chain scroll-sepolia --datadir=./l2reth --disable-discovery \
75-
--http --http.addr=0.0.0.0 --http.port=8545 --http.api eth \
76-
--trusted-peers enode://29cee709c400533ae038a875b9ca975c8abef9eade956dcf3585e940acd5c0ae916968f514bd37d1278775aad1b7db30f7032a70202a87fd7365bd8de3c9f5fc@44.242.39.33:30303 \
77-
--log.stdout.format log-fmt -vvv \
78-
--l1.url "https://eth-sepolia.g.alchemy.com/v2/$ALCHEMY_KEY" --l1.cups 500 \
79-
--beacon.url https://eth-beacon-chain.drpc.org/rest/ --beacon.cups 100 --engine.en-sync-trigger 10000000000 \
80-
--engine.sync-at-startup=false --engine.always-process-payload-attributes-on-canonical-head &
81-
- name: Get hash for block 50000
8254
run: |
83-
echo "Waiting for block 50000..."
84-
while ! cast block 50000 --rpc-url http://localhost:8545 2>/dev/null | grep -q hash; do
85-
sleep 10
86-
done
87-
echo "Block 50000 found!"
88-
89-
EXPECTED_HASH="0x8333d8cd1274d49dcf9b130971d1b485a01f2a2604e73ea7caf9d721fbdf5859"
90-
cast block 50000 --rpc-url http://localhost:8545 | grep -q "$EXPECTED_HASH"
55+
cargo nextest run --all-features --workspace --locked \
56+
--no-tests=pass -E 'kind(test)' \
57+
-- --skip test_should_consolidate_to_block_15k

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ target/
2323
.vscode/
2424

2525
.idea/
26+
27+
# OS
28+
.DS_Store

0 commit comments

Comments
 (0)