Skip to content

Commit 5449c60

Browse files
Merge branch 'develop' into bump_bot
2 parents 7813836 + 054bbd2 commit 5449c60

File tree

143 files changed

+27598
-1095
lines changed

Some content is hidden

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

143 files changed

+27598
-1095
lines changed

.github/workflows/l2geth_ci.yml

+22-6
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Install Go
2121
uses: actions/setup-go@v2
2222
with:
23-
go-version: 1.18.x
23+
go-version: 1.20.x
2424
- name: Checkout code
2525
uses: actions/checkout@v2
2626
- name: Build
@@ -33,7 +33,7 @@ jobs:
3333
- name: Install Go
3434
uses: actions/setup-go@v2
3535
with:
36-
go-version: 1.19.x
36+
go-version: 1.20.x
3737
- name: Install rust
3838
uses: actions-rs/toolchain@v1
3939
with:
@@ -55,7 +55,7 @@ jobs:
5555
- name: Install Go
5656
uses: actions/setup-go@v2
5757
with:
58-
go-version: 1.18.x
58+
go-version: 1.20.x
5959
- name: Checkout code
6060
uses: actions/checkout@v2
6161
- name: Lint
@@ -75,9 +75,25 @@ jobs:
7575
- name: Checkout code
7676
uses: actions/checkout@v2
7777
- run: goimports -local github.com/scroll-tech/go-ethereum/ -w .
78+
# If there are any diffs from goimports, fail.
79+
- name: Verify no changes from goimports
80+
run: |
81+
if [ -n "$(git status --porcelain)" ]; then
82+
exit 1
83+
fi
84+
go-mod-tidy-lint:
85+
if: github.event.pull_request.draft == false
86+
runs-on: ubuntu-latest
87+
steps:
88+
- name: Install Go
89+
uses: actions/setup-go@v2
90+
with:
91+
go-version: 1.20.x
92+
- name: Checkout code
93+
uses: actions/checkout@v2
7894
- run: go mod tidy
79-
# If there are any diffs from goimports or go mod tidy, fail.
80-
- name: Verify no changes from goimports and go mod tidy
95+
# If there are any diffs from go mod tidy, fail.
96+
- name: Verify no changes from go mod tidy
8197
run: |
8298
if [ -n "$(git status --porcelain)" ]; then
8399
exit 1
@@ -89,7 +105,7 @@ jobs:
89105
- name: Install Go
90106
uses: actions/setup-go@v2
91107
with:
92-
go-version: 1.18.x
108+
go-version: 1.20.x
93109
- name: Checkout code
94110
uses: actions/checkout@v2
95111
- name: Test

.gitmodules

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
shallow = true
55
[submodule "internal/utesting/blocktraces"]
66
path = internal/utesting/blocktraces
7-
url = git@github.com:scroll-tech/test-traces.git
7+
url = https://github.com/scroll-tech/test-traces.git

.golangci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ linters:
1313
disable-all: true
1414
enable:
1515
- deadcode
16-
- goconst
17-
- goimports
16+
# - goconst
17+
# - goimports
1818
- gosimple
1919
- govet
2020
- ineffassign

Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ARG VERSION=""
44
ARG BUILDNUM=""
55

66
# Build libzkp dependency
7-
FROM scrolltech/go-rust-builder:go-1.19-rust-nightly-2022-12-10 as chef
7+
FROM scrolltech/go-rust-builder:go-1.20-rust-nightly-2022-12-10 as chef
88
WORKDIR app
99

1010
FROM chef as planner
@@ -17,11 +17,12 @@ COPY --from=planner /app/recipe.json recipe.json
1717
RUN cargo chef cook --release --recipe-path recipe.json
1818

1919
COPY ./rollup/circuitcapacitychecker/libzkp .
20+
RUN cargo clean
2021
RUN cargo build --release
2122
RUN find ./ | grep libzktrie.so | xargs -I{} cp {} /app/target/release/
2223

2324
# Build Geth in a stock Go builder container
24-
FROM scrolltech/go-rust-builder:go-1.19-rust-nightly-2022-12-10 as builder
25+
FROM scrolltech/go-rust-builder:go-1.20-rust-nightly-2022-12-10 as builder
2526

2627
ADD . /go-ethereum
2728
COPY --from=zkp-builder /app/target/release/libzkp.so /usr/local/lib/

Dockerfile.alltools

+1-1
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.19-alpine as builder
7+
FROM golang:1.20-alpine as builder
88

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

Dockerfile.mockccc

+1-1
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 scrolltech/go-rust-builder:go-1.19-rust-nightly-2022-12-10 as builder
7+
FROM scrolltech/go-rust-builder:go-1.20-rust-nightly-2022-12-10 as builder
88

99
ADD . /go-ethereum
1010
RUN cd /go-ethereum && env GO111MODULE=on go run build/ci.go install ./cmd/geth

Dockerfile.mockccc.alpine

+1-1
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.18-alpine as builder
7+
FROM golang:1.20-alpine as builder
88

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

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ZK-Rollup adapts the Go Ethereum to run as Layer 2 Sequencer. The codebase is ba
1717

1818
Another implement for storage trie, base on patricia merkle tree, has been induced. It is feasible to zk proving in the storage part. It is specified as a flag in gensis, set `config.scroll.useZktrie` to true for enabling it.
1919

20-
Notice current the snapshot would be disabled by the zktrie implement.
20+
Notice that currently the snapshot would be disabled by the zktrie implement.
2121

2222
## Building the source
2323

accounts/abi/bind/backends/simulated.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ type SimulatedBackend struct {
7979
func NewSimulatedBackendWithDatabase(database ethdb.Database, alloc core.GenesisAlloc, gasLimit uint64) *SimulatedBackend {
8080
genesis := core.Genesis{Config: params.AllEthashProtocolChanges, GasLimit: gasLimit, Alloc: alloc}
8181
genesis.MustCommit(database)
82-
blockchain, _ := core.NewBlockChain(database, nil, genesis.Config, ethash.NewFaker(), vm.Config{}, nil, nil, false)
82+
blockchain, _ := core.NewBlockChain(database, nil, genesis.Config, ethash.NewFaker(), vm.Config{}, nil, nil)
8383

8484
backend := &SimulatedBackend{
8585
database: database,
@@ -590,7 +590,7 @@ func (b *SimulatedBackend) callContract(ctx context.Context, call ethereum.CallM
590590
return nil, errors.New("both gasPrice and (maxFeePerGas or maxPriorityFeePerGas) specified")
591591
}
592592
head := b.blockchain.CurrentHeader()
593-
if !b.blockchain.Config().IsLondon(head.Number) {
593+
if !b.blockchain.Config().IsCurie(head.Number) {
594594
// If there's no basefee, then it must be a non-1559 execution
595595
if call.GasPrice == nil {
596596
call.GasPrice = new(big.Int)

accounts/abi/bind/base.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ func (c *BoundContract) createDynamicTx(opts *TransactOpts, contract *common.Add
289289

290290
func (c *BoundContract) createLegacyTx(opts *TransactOpts, contract *common.Address, input []byte) (*types.Transaction, error) {
291291
if opts.GasFeeCap != nil || opts.GasTipCap != nil {
292-
return nil, errors.New("maxFeePerGas or maxPriorityFeePerGas specified but london is not active yet")
292+
return nil, errors.New("maxFeePerGas or maxPriorityFeePerGas specified but curie is not active yet")
293293
}
294294
// Normalize value
295295
value := opts.Value

build/checksums.txt

+27-21
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,30 @@ c4b2349a8d11350ca038b8c57f3cc58dc0b31284bcbed4f7fca39aeed28b4a51 go1.17.2.linux
1515
fa6da0b829a66f5fab7e4e312fd6aa1b2d8f045c7ecee83b3d00f6fe5306759a go1.17.2.windows-amd64.zip
1616
00575c85dc7a129ba892685a456b27a3f3670f71c8bfde1c5ad151f771d55df7 go1.17.2.windows-arm64.zip
1717

18-
658078aaaf7608693f37c4cf1380b2af418ab8b2d23fdb33e7e2d4339328590e golangci-lint-1.46.2-darwin-amd64.tar.gz
19-
81f9b4afd62ec5e612ef8bc3b1d612a88b56ff289874831845cdad394427385f golangci-lint-1.46.2-darwin-arm64.tar.gz
20-
943486e703e62ec55ecd90caeb22bcd39f8cc3962a93eec18c06b7bae12cb46f golangci-lint-1.46.2-freebsd-386.tar.gz
21-
a75dd9ba7e08e8315c411697171db5375c0f6a1ece9e6fbeb9e9a4386822e17d golangci-lint-1.46.2-freebsd-amd64.tar.gz
22-
83eedca1af72e8be055a1235177eb1b33524fbf08bec5730df2e6c3efade2b23 golangci-lint-1.46.2-freebsd-armv6.tar.gz
23-
513d276c490de6f82baa01f9346d8d78b385f2ae97608f42f05d1f0f1314cd54 golangci-lint-1.46.2-freebsd-armv7.tar.gz
24-
461a60016d516c69d406dc3e2d4957b722dbe684b7085dfac4802d0f84409e27 golangci-lint-1.46.2-linux-386.tar.gz
25-
242cd4f2d6ac0556e315192e8555784d13da5d1874e51304711570769c4f2b9b golangci-lint-1.46.2-linux-amd64.tar.gz
26-
ff5448ada2b3982581984d64b0dec614dba0a3ea4cab2d6a343c77927fc89f7e golangci-lint-1.46.2-linux-arm64.tar.gz
27-
177f5210ef04aee282bfbc6ec519d36af5fb7d2b2c8d3f4ea5e59fdba71b0a27 golangci-lint-1.46.2-linux-armv6.tar.gz
28-
10dd512a36ee978a1009edbca3ba3af410f0fda8df4d85f0e4793a24213870cc golangci-lint-1.46.2-linux-armv7.tar.gz
29-
67779fa517c688c9db1090c3c456117d95c6b92979c623fe8cce8fb84251f21e golangci-lint-1.46.2-linux-mips64.tar.gz
30-
c085f0f57bdccbb2c902a41b72ce210a3dfff16ca856789374745ab52004b6ee golangci-lint-1.46.2-linux-mips64le.tar.gz
31-
abecef6421499248e58ed75d2938bc12b4b1f98b057f25060680b77bb51a881e golangci-lint-1.46.2-linux-ppc64le.tar.gz
32-
134843a8f5c5c182c11979ea75f5866945d54757b2a04f3e5e04a0cf4fbf3a39 golangci-lint-1.46.2-linux-riscv64.tar.gz
33-
9fe21a9476567aafe7a2e1a926b9641a39f920d4c0ea8eda9d968bc6136337f9 golangci-lint-1.46.2-linux-s390x.tar.gz
34-
b48a421ec12a43f8fc8f977b9cf7d4a1ea1c4b97f803a238de7d3ce4ab23a84b golangci-lint-1.46.2-windows-386.zip
35-
604acc1378a566abb0eac799362f3a37b7fcb5fa2268aeb2d5d954c829367301 golangci-lint-1.46.2-windows-amd64.zip
36-
927def10db073da9687594072e6a3d9c891f67fa897105a2cfd715e018e7386c golangci-lint-1.46.2-windows-arm64.zip
37-
729b76ed1d8b4e2612e38772b211503cb940e00a137bbaace1aa066f7c943737 golangci-lint-1.46.2-windows-armv6.zip
38-
ea27c86d91e0b245ecbcfbf6cdb4ac0522d4bc6dca56bba02ea1bc77ad2917ac golangci-lint-1.46.2-windows-armv7.zip
18+
632e96e6d5294fbbe7b2c410a49c8fa01c60712a0af85a567de85bcc1623ea21 golangci-lint-1.55.2-darwin-amd64.tar.gz
19+
234463f059249f82045824afdcdd5db5682d0593052f58f6a3039a0a1c3899f6 golangci-lint-1.55.2-darwin-arm64.tar.gz
20+
2bdd105e2d4e003a9058c33a22bb191a1e0f30fa0790acca0d8fbffac1d6247c golangci-lint-1.55.2-freebsd-386.tar.gz
21+
e75056e8b082386676ce23eba455cf893931a792c0d87e1e3743c0aec33c7fb5 golangci-lint-1.55.2-freebsd-amd64.tar.gz
22+
5789b933facaf6136bd23f1d50add67b79bbcf8dfdfc9069a37f729395940a66 golangci-lint-1.55.2-freebsd-armv6.tar.gz
23+
7f21ab1008d05f32c954f99470fc86a83a059e530fe2add1d0b7d8ed4d8992a7 golangci-lint-1.55.2-freebsd-armv7.tar.gz
24+
33ab06139b9219a28251f10821da94423db30285cc2af97494cbb2a281927de9 golangci-lint-1.55.2-illumos-amd64.tar.gz
25+
57ce6f8ce3ad6ee45d7cc3d9a047545a851c2547637834a3fcb086c7b40b1e6b golangci-lint-1.55.2-linux-386.tar.gz
26+
ca21c961a33be3bc15e4292dc40c98c8dcc5463a7b6768a3afc123761630c09c golangci-lint-1.55.2-linux-amd64.tar.gz
27+
8eb0cee9b1dbf0eaa49871798c7f8a5b35f2960c52d776a5f31eb7d886b92746 golangci-lint-1.55.2-linux-arm64.tar.gz
28+
3195f3e0f37d353fd5bd415cabcd4e263f5c29d3d0ffb176c26ff3d2c75eb3bb golangci-lint-1.55.2-linux-armv6.tar.gz
29+
c823ee36eb1a719e171de1f2f5ca3068033dce8d9817232fd10ed71fd6650406 golangci-lint-1.55.2-linux-armv7.tar.gz
30+
758a5d2a356dc494bd13ed4c0d4bf5a54a4dc91267ea5ecdd87b86c7ca0624e7 golangci-lint-1.55.2-linux-loong64.tar.gz
31+
2c7b9abdce7cae802a67d583cd7c6dca520bff6d0e17c8535a918e2f2b437aa0 golangci-lint-1.55.2-linux-mips64.tar.gz
32+
024e0a15b85352cc27271285526e16a4ab66d3e67afbbe446c9808c06cb8dbed golangci-lint-1.55.2-linux-mips64le.tar.gz
33+
6b00f89ba5506c1de1efdd9fa17c54093013a294fefd8b9b31534db626a672ee golangci-lint-1.55.2-linux-ppc64le.tar.gz
34+
0faa0d047d9bf7b703ed3ea65b6117043c93504f9ca1de25ae929d3901c73d4a golangci-lint-1.55.2-linux-riscv64.tar.gz
35+
30dec9b22e7d5bb4e9d5ccea96da20f71cd7db3c8cf30b8ddc7cb9174c4d742a golangci-lint-1.55.2-linux-s390x.tar.gz
36+
5a0ede48f79ad707902fdb29be8cd2abd8302dc122b65ebae3fdfc86751c7698 golangci-lint-1.55.2-netbsd-386.tar.gz
37+
95af20a2e617126dd5b08122ece7819101070e1582a961067ce8c41172f901ad golangci-lint-1.55.2-netbsd-amd64.tar.gz
38+
94fb7dacb7527847cc95d7120904e19a2a0a81a0d50d61766c9e0251da72ab9d golangci-lint-1.55.2-netbsd-armv6.tar.gz
39+
ca906bce5fee9619400e4a321c56476fe4a4efb6ac4fc989d340eb5563348873 golangci-lint-1.55.2-netbsd-armv7.tar.gz
40+
45b442f69fc8915c4500201c0247b7f3f69544dbc9165403a61f9095f2c57355 golangci-lint-1.55.2-windows-386.zip
41+
f57d434d231d43417dfa631587522f8c1991220b43c8ffadb9c7bd279508bf81 golangci-lint-1.55.2-windows-amd64.zip
42+
fd7dc8f4c6829ee6fafb252a4d81d2155cd35da7833665cbb25d53ce7cecd990 golangci-lint-1.55.2-windows-arm64.zip
43+
1892c3c24f9e7ef44b02f6750c703864b6dc350129f3ec39510300007b2376f1 golangci-lint-1.55.2-windows-armv6.zip
44+
a5e68ae73d38748b5269fad36ac7575e3c162a5dc63ef58abdea03cc5da4522a golangci-lint-1.55.2-windows-armv7.zip

build/ci.go

+12-13
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,18 @@ Usage: go run build/ci.go <command> <command flags/arguments>
2424
2525
Available commands are:
2626
27-
install [ -arch architecture ] [ -cc compiler ] [ packages... ] -- builds packages and executables
28-
test [ -coverage ] [ packages... ] -- runs the tests
29-
lint -- runs certain pre-selected linters
30-
archive [ -arch architecture ] [ -type zip|tar ] [ -signer key-envvar ] [ -signify key-envvar ] [ -upload dest ] -- archives build artifacts
31-
importkeys -- imports signing keys from env
32-
debsrc [ -signer key-id ] [ -upload dest ] -- creates a debian source package
33-
nsis -- creates a Windows NSIS installer
34-
aar [ -local ] [ -sign key-id ] [-deploy repo] [ -upload dest ] -- creates an Android archive
35-
xcode [ -local ] [ -sign key-id ] [-deploy repo] [ -upload dest ] -- creates an iOS XCode framework
36-
purge [ -store blobstore ] [ -days threshold ] -- purges old archives from the blobstore
27+
install [ -arch architecture ] [ -cc compiler ] [ packages... ] -- builds packages and executables
28+
test [ -coverage ] [ packages... ] -- runs the tests
29+
lint -- runs certain pre-selected linters
30+
archive [ -arch architecture ] [ -type zip|tar ] [ -signer key-envvar ] [ -signify key-envvar ] [ -upload dest ] -- archives build artifacts
31+
importkeys -- imports signing keys from env
32+
debsrc [ -signer key-id ] [ -upload dest ] -- creates a debian source package
33+
nsis -- creates a Windows NSIS installer
34+
aar [ -local ] [ -sign key-id ] [-deploy repo] [ -upload dest ] -- creates an Android archive
35+
xcode [ -local ] [ -sign key-id ] [-deploy repo] [ -upload dest ] -- creates an iOS XCode framework
36+
purge [ -store blobstore ] [ -days threshold ] -- purges old archives from the blobstore
3737
3838
For all commands, -n prevents execution of external programs (dry run mode).
39-
4039
*/
4140
package main
4241

@@ -148,7 +147,7 @@ var (
148147
// This is the version of go that will be downloaded by
149148
//
150149
// go run ci.go install -dlgo
151-
dlgoVersion = "1.17.2"
150+
dlgoVersion = "1.20.2"
152151
)
153152

154153
var GOBIN, _ = filepath.Abs(filepath.Join("build", "bin"))
@@ -336,7 +335,7 @@ func doLint(cmdline []string) {
336335

337336
// downloadLinter downloads and unpacks golangci-lint.
338337
func downloadLinter(cachedir string) string {
339-
const version = "1.46.2"
338+
const version = "1.55.2"
340339

341340
csdb := build.MustLoadChecksums("build/checksums.txt")
342341
base := fmt.Sprintf("golangci-lint-%s-%s-%s", version, runtime.GOOS, runtime.GOARCH)

cmd/evm/internal/t8ntool/transition.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ func Transition(ctx *cli.Context) error {
247247
return NewError(ErrorJson, fmt.Errorf("failed signing transactions: %v", err))
248248
}
249249
// Sanity check, to not `panic` in state_transition
250-
if chainConfig.IsLondon(big.NewInt(int64(prestate.Env.Number))) {
251-
if prestate.Env.BaseFee == nil && chainConfig.Scroll.BaseFeeEnabled() {
250+
if chainConfig.IsCurie(big.NewInt(int64(prestate.Env.Number))) {
251+
if prestate.Env.BaseFee == nil {
252252
return NewError(ErrorConfig, errors.New("EIP-1559 config but missing 'currentBaseFee' in env section"))
253253
}
254254
}
@@ -321,8 +321,9 @@ func (t *txWithKey) UnmarshalJSON(input []byte) error {
321321
// signUnsignedTransactions converts the input txs to canonical transactions.
322322
//
323323
// The transactions can have two forms, either
324-
// 1. unsigned or
325-
// 2. signed
324+
// 1. unsigned or
325+
// 2. signed
326+
//
326327
// For (1), r, s, v, need so be zero, and the `secretKey` needs to be set.
327328
// If so, we sign it here and now, with the given `secretKey`
328329
// If the condition above is not met, then it's considered a signed transaction.

cmd/geth/main.go

+1
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ var (
165165
utils.L1ConfirmationsFlag,
166166
utils.L1DeploymentBlockFlag,
167167
utils.CircuitCapacityCheckEnabledFlag,
168+
utils.RollupVerifyEnabledFlag,
168169
}
169170

170171
rpcFlags = []cli.Flag{

cmd/utils/flags.go

+19-3
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ import (
7373
"github.com/scroll-tech/go-ethereum/p2p/nat"
7474
"github.com/scroll-tech/go-ethereum/p2p/netutil"
7575
"github.com/scroll-tech/go-ethereum/params"
76+
"github.com/scroll-tech/go-ethereum/rollup/tracing"
7677
"github.com/scroll-tech/go-ethereum/rpc"
7778
)
7879

@@ -836,6 +837,12 @@ var (
836837
Usage: "Enable circuit capacity check during block validation",
837838
}
838839

840+
// Rollup verify service settings
841+
RollupVerifyEnabledFlag = cli.BoolFlag{
842+
Name: "rollup.verify",
843+
Usage: "Enable verification of batch consistency between L1 and L2 in rollup",
844+
}
845+
839846
// Max block range for `eth_getLogs` method
840847
MaxBlockRangeFlag = cli.Int64Flag{
841848
Name: "rpc.getlogs.maxrange",
@@ -1546,6 +1553,12 @@ func setCircuitCapacityCheck(ctx *cli.Context, cfg *ethconfig.Config) {
15461553
}
15471554
}
15481555

1556+
func setEnableRollupVerify(ctx *cli.Context, cfg *ethconfig.Config) {
1557+
if ctx.GlobalIsSet(RollupVerifyEnabledFlag.Name) {
1558+
cfg.EnableRollupVerify = ctx.GlobalBool(RollupVerifyEnabledFlag.Name)
1559+
}
1560+
}
1561+
15491562
func setMaxBlockRange(ctx *cli.Context, cfg *ethconfig.Config) {
15501563
if ctx.GlobalIsSet(MaxBlockRangeFlag.Name) {
15511564
cfg.MaxBlockRange = ctx.GlobalInt64(MaxBlockRangeFlag.Name)
@@ -1620,6 +1633,7 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
16201633
setWhitelist(ctx, cfg)
16211634
setLes(ctx, cfg)
16221635
setCircuitCapacityCheck(ctx, cfg)
1636+
setEnableRollupVerify(ctx, cfg)
16231637
setMaxBlockRange(ctx, cfg)
16241638

16251639
// Cap the cache allowance and tune the garbage collector
@@ -1891,7 +1905,8 @@ func RegisterEthService(stack *node.Node, cfg *ethconfig.Config) (ethapi.Backend
18911905
if err != nil {
18921906
Fatalf("Failed to register the Ethereum service: %v", err)
18931907
}
1894-
stack.RegisterAPIs(tracers.APIs(backend.ApiBackend))
1908+
scrollTracerWrapper := tracing.NewTracerWrapper()
1909+
stack.RegisterAPIs(tracers.APIs(backend.ApiBackend, scrollTracerWrapper))
18951910
return backend.ApiBackend, nil
18961911
}
18971912

@@ -1920,7 +1935,8 @@ func RegisterEthService(stack *node.Node, cfg *ethconfig.Config) (ethapi.Backend
19201935
Fatalf("Failed to create the LES server: %v", err)
19211936
}
19221937
}
1923-
stack.RegisterAPIs(tracers.APIs(backend.APIBackend))
1938+
scrollTracerWrapper := tracing.NewTracerWrapper()
1939+
stack.RegisterAPIs(tracers.APIs(backend.APIBackend, scrollTracerWrapper))
19241940
return backend.APIBackend, backend
19251941
}
19261942

@@ -2117,7 +2133,7 @@ func MakeChain(ctx *cli.Context, stack *node.Node) (chain *core.BlockChain, chai
21172133

21182134
// TODO(rjl493456442) disable snapshot generation/wiping if the chain is read only.
21192135
// Disable transaction indexing/unindexing by default.
2120-
chain, err = core.NewBlockChain(chainDb, cache, config, engine, vmcfg, nil, nil, false)
2136+
chain, err = core.NewBlockChain(chainDb, cache, config, engine, vmcfg, nil, nil)
21212137
if err != nil {
21222138
Fatalf("Can't create BlockChain: %v", err)
21232139
}

consensus/clique/clique.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ func (c *Clique) verifyCascadingFields(chain consensus.ChainHeaderReader, header
335335
if header.GasUsed > header.GasLimit {
336336
return fmt.Errorf("invalid gasUsed: have %d, gasLimit %d", header.GasUsed, header.GasLimit)
337337
}
338-
if !chain.Config().IsLondon(header.Number) {
338+
if !chain.Config().IsCurie(header.Number) {
339339
// Verify BaseFee not present before EIP-1559 fork.
340340
if header.BaseFee != nil {
341341
return fmt.Errorf("invalid baseFee before fork: have %d, want <nil>", header.BaseFee)

0 commit comments

Comments
 (0)