@@ -20,7 +20,6 @@ import (
2020
2121 "github.com/ledgerwatch/erigon/consensus/misc"
2222 "github.com/ledgerwatch/erigon/core"
23- "github.com/ledgerwatch/erigon/turbo/rpchelper"
2423 "github.com/ledgerwatch/erigon/zk/erigon_db"
2524 "github.com/ledgerwatch/erigon/zk/hermez_db"
2625
@@ -276,12 +275,18 @@ func getExecRange(cfg ExecuteBlockCfg, tx kv.RwTx, stageProgress, toBlock uint64
276275 return to , total , nil
277276 }
278277
279- shouldShortCircuit , noProgressTo , err := utils .ShouldShortCircuitExecution (tx , logPrefix , cfg .zk .L2ShortCircuitToVerifiedBatch , func (tx kv.Tx ) (uint64 , error ) {
280- return rpchelper .GetFinalizedBatchNumber (tx )
281- })
282- if err != nil {
283- return 0 , 0 , fmt .Errorf ("ShouldShortCircuitExecution: %w" , err )
284- }
278+ /*
279+ // X Layer: we do not roll up on L1 for RPC nodes anymore. Therefore, we no longer
280+ // short-circuit execution to the L1 verified batch. Instead, we execute directly
281+ // using the blocks downloaded from the DataStream, ignoring L1 verified batch
282+ // boundaries here.
283+ shouldShortCircuit, noProgressTo, err := utils.ShouldShortCircuitExecution(tx, logPrefix, cfg.zk.L2ShortCircuitToVerifiedBatch, func(tx kv.Tx) (uint64, error) {
284+ return rpchelper.GetFinalizedBatchNumber(tx)
285+ })
286+ if err != nil {
287+ return 0, 0, fmt.Errorf("ShouldShortCircuitExecution: %w", err)
288+ }
289+ */
285290 prevStageProgress , err := stages .GetStageProgress (tx , stages .Senders )
286291 if err != nil {
287292 return 0 , 0 , fmt .Errorf ("getStageProgress: %w" , err )
@@ -297,9 +302,9 @@ func getExecRange(cfg ExecuteBlockCfg, tx kv.RwTx, stageProgress, toBlock uint64
297302 to = cmp .Min (prevStageProgress , toBlock )
298303 }
299304
300- if shouldShortCircuit {
301- to = noProgressTo
302- }
305+ // if shouldShortCircuit {
306+ // to = noProgressTo
307+ // }
303308
304309 total := to - stageProgress
305310
0 commit comments