Skip to content

Commit 971ef13

Browse files
prevent to do parallel exec on gnosis (#13153)
1 parent 81d6b29 commit 971ef13

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

cmd/state/exec3/historical_trace_worker.go

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323
"sync/atomic"
2424
"time"
2525

26+
"github.com/erigontech/erigon-lib/chain/networkname"
2627
"golang.org/x/sync/errgroup"
2728

2829
"github.com/erigontech/erigon-lib/chain"
@@ -350,6 +351,9 @@ func CustomTraceMapReduce(fromBlock, toBlock uint64, consumer TraceConsumer, ctx
350351
log.Info("[Receipt] batch start", "fromBlock", fromBlock, "toBlock", toBlock, "workers", cfg.Workers)
351352
br := cfg.BlockReader
352353
chainConfig := cfg.ChainConfig
354+
if chainConfig.ChainName == networkname.Gnosis {
355+
panic("gnosis consensus doesn't support parallel exec yet: https://github.com/erigontech/erigon/issues/12054")
356+
}
353357

354358
txNumsReader := rawdbv3.TxNums.WithCustomReadTxNumFunc(freezeblocks.ReadTxNumFuncFromBlockReader(ctx, cfg.BlockReader))
355359

eth/stagedsync/exec3.go

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727
"sync/atomic"
2828
"time"
2929

30+
"github.com/erigontech/erigon-lib/chain/networkname"
3031
"github.com/erigontech/erigon-lib/common"
3132
"github.com/erigontech/erigon-lib/common/cmp"
3233
"github.com/erigontech/erigon-lib/common/dbg"
@@ -207,6 +208,9 @@ func ExecV3(ctx context.Context,
207208
) error {
208209
// TODO: e35 doesn't support parallel-exec yet
209210
parallel = false //nolint
211+
if parallel && cfg.chainConfig.ChainName == networkname.Gnosis {
212+
panic("gnosis consensus doesn't support parallel exec yet: https://github.com/erigontech/erigon/issues/12054")
213+
}
210214

211215
blockReader := cfg.blockReader
212216
chainConfig := cfg.chainConfig

0 commit comments

Comments
 (0)