Skip to content

Commit e6e1716

Browse files
authored
Merge pull request #2063 from 0xPolygon/fix/stage-progress-ih
fix(sequencer): stagestate update on inters
2 parents d848961 + 49b6988 commit e6e1716

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

zk/stages/stage_sequence_execute_blocks.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ func finaliseBlock(
209209

210210
log.Info(fmt.Sprintf("[%s] [SR-DEBUG] IncrementIntermediateHashes for the PMT", batchContext.s.LogPrefix()), "startingBlock", batchContext.s.BlockNumber, "endingBlock", thisBlockNumber)
211211
newRoot, err = stagedsync.IncrementIntermediateHashes(batchContext.s.LogPrefix(), batchContext.s, batchContext.sdb.tx, thisBlockNumber, trieConfigSequencer(batchContext.cfg.intersCfg), common.Hash{}, quit, logger)
212+
batchContext.s.BlockNumber = thisBlockNumber
212213
} else {
213214
log.Info(fmt.Sprintf("[%s] [SR-DEBUG] IncrementIntermediateHashes for the SMT", batchContext.s.LogPrefix()), "startingBlock", newHeader.Number.Uint64()-1, "endingBlock", newHeader.Number.Uint64())
214215
newRoot, err = zkIncrementIntermediateHashes(batchContext.ctx, batchContext.s.LogPrefix(), batchContext.s, batchContext.sdb.tx, batchContext.sdb.eridb, batchContext.sdb.smt, newHeader.Number.Uint64()-1, newHeader.Number.Uint64())

0 commit comments

Comments
 (0)