feat: force commit batches at hardfork boundary (#1768)

This commit is contained in:
Péter Garamvölgyi
2025-11-30 20:36:53 +01:00
committed by GitHub
parent e75d6c16a9
commit 690bc01c41
2 changed files with 2 additions and 1 deletions

View File

@@ -5,7 +5,7 @@ import (
"runtime/debug"
)
var tag = "v4.7.7"
var tag = "v4.7.8"
var commit = func() string {
if info, ok := debug.ReadBuildInfo(); ok {

View File

@@ -452,6 +452,7 @@ func (r *Layer2Relayer) ProcessPendingBatches() {
// The next call of ProcessPendingBatches will then start with the batch with the different codec version.
batchesToSubmitLen := len(batchesToSubmit)
if batchesToSubmitLen > 0 && batchesToSubmit[batchesToSubmitLen-1].Batch.CodecVersion != dbBatch.CodecVersion {
forceSubmit = true
break
}