Skip to content

Commit 2a07c96

Browse files
committed
Merge branch 'feat/cherry_pick_eip7823' of github.com:scroll-tech/go-ethereum into feat/cherry_pick_eip7823
2 parents 9f8043c + d550fa9 commit 2a07c96

25 files changed

+4752
-96
lines changed

.github/workflows/l2geth_ci.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Install Go
2424
uses: actions/setup-go@v5
2525
with:
26-
go-version: 1.21.x
26+
go-version: 1.22.x
2727

2828
- name: Checkout code
2929
uses: actions/checkout@v4
@@ -42,7 +42,7 @@ jobs:
4242
- name: Install Go
4343
uses: actions/setup-go@v5
4444
with:
45-
go-version: 1.21.x
45+
go-version: 1.22.x
4646

4747
- name: Install rust
4848
uses: actions-rust-lang/setup-rust-toolchain@9399c7bb15d4c7d47b27263d024f0a4978346ba4 # v1.11.0
@@ -63,14 +63,15 @@ jobs:
6363
make geth
6464
6565
check:
66-
if: github.event.pull_request.draft == false
66+
# if: github.event.pull_request.draft == false
67+
if: false
6768
runs-on: ubuntu-latest
6869
permissions: {}
6970
steps:
7071
- name: Install Go
7172
uses: actions/setup-go@v5
7273
with:
73-
go-version: 1.21.x
74+
go-version: 1.22.x
7475

7576
- name: Checkout code
7677
uses: actions/checkout@v4
@@ -117,7 +118,7 @@ jobs:
117118
- name: Install Go
118119
uses: actions/setup-go@v5
119120
with:
120-
go-version: 1.21.x
121+
go-version: 1.22.x
121122

122123
- name: Checkout code
123124
uses: actions/checkout@v4
@@ -141,7 +142,7 @@ jobs:
141142
- name: Install Go
142143
uses: actions/setup-go@v5
143144
with:
144-
go-version: 1.21.x
145+
go-version: 1.22.x
145146

146147
- name: Checkout code
147148
uses: actions/checkout@v4

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ARG BUILDNUM=""
55
ARG SCROLL_LIB_PATH=/scroll/lib
66

77
# Build libzkp dependency
8-
FROM scrolltech/go-rust-builder:go-1.21-rust-nightly-2023-12-03 as chef
8+
FROM scrolltech/go-rust-builder:go-1.22.12-rust-nightly-2025-02-14 as chef
99
WORKDIR app
1010

1111
FROM chef as planner
@@ -22,7 +22,7 @@ RUN cargo clean
2222
RUN cargo build --release
2323

2424
# Build Geth in a stock Go builder container
25-
FROM scrolltech/go-rust-builder:go-1.21-rust-nightly-2023-12-03 as builder
25+
FROM scrolltech/go-rust-builder:go-1.22.12-rust-nightly-2025-02-14 as builder
2626

2727
ADD . /go-ethereum
2828

Dockerfile.alltools

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ARG VERSION=""
44
ARG BUILDNUM=""
55

66
# Build Geth in a stock Go builder container
7-
FROM golang:1.21-alpine as builder
7+
FROM golang:1.22-alpine as builder
88

99
RUN apk add --no-cache gcc musl-dev linux-headers git
1010

Dockerfile.mockccc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ARG BUILDNUM=""
55
ARG SCROLL_LIB_PATH=/scroll/lib
66

77
# Build Geth in a stock Go builder container
8-
FROM scrolltech/go-rust-builder:go-1.21-rust-nightly-2023-12-03 as builder
8+
FROM scrolltech/go-rust-builder:go-1.22.12-rust-nightly-2025-02-14 as builder
99

1010
WORKDIR /go-ethereum
1111
COPY go.mod go.sum ./

Dockerfile.mockccc.alpine

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ARG VERSION=""
44
ARG BUILDNUM=""
55

66
# Build Geth in a stock Go builder container
7-
FROM golang:1.21-alpine as builder
7+
FROM golang:1.22-alpine as builder
88

99
RUN apk add --no-cache gcc musl-dev linux-headers git
1010

cmd/geth/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ var (
171171
utils.L1ConfirmationsFlag,
172172
utils.L1DeploymentBlockFlag,
173173
utils.L1SyncIntervalFlag,
174+
utils.L1FetchBlockRangeFlag,
174175
utils.L1DisableMessageQueueV2Flag,
175176
utils.CircuitCapacityCheckEnabledFlag,
176177
utils.CircuitCapacityCheckWorkersFlag,

cmd/utils/flags.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,10 @@ var (
857857
Name: "l1.sync.interval",
858858
Usage: "Poll interval for L1 message syncing (e.g., 2s, 10s, 1m)",
859859
}
860+
L1FetchBlockRangeFlag = cli.Int64Flag{
861+
Name: "l1.sync.fetchblockrange",
862+
Usage: "Block range for L1 message fetching in a single eth_getLogs query",
863+
}
860864
L1DisableMessageQueueV2Flag = &cli.BoolFlag{
861865
Name: "l1.disablemqv2",
862866
Usage: "Disable L1 message queue v2",
@@ -1477,6 +1481,9 @@ func setL1(ctx *cli.Context, cfg *node.Config) {
14771481
if ctx.GlobalIsSet(L1SyncIntervalFlag.Name) {
14781482
cfg.L1SyncInterval = ctx.GlobalDuration(L1SyncIntervalFlag.Name)
14791483
}
1484+
if ctx.GlobalIsSet(L1FetchBlockRangeFlag.Name) {
1485+
cfg.L1FetchBlockRange = ctx.GlobalUint64(L1FetchBlockRangeFlag.Name)
1486+
}
14801487
if ctx.GlobalIsSet(L1DisableMessageQueueV2Flag.Name) {
14811488
cfg.L1DisableMessageQueueV2 = ctx.GlobalBool(L1DisableMessageQueueV2Flag.Name)
14821489
}

0 commit comments

Comments
 (0)