Skip to content

Commit

Permalink
cherry-pick from 0.6.3 0xPolygonHermez#3443 synchronizer: fix bug clo…
Browse files Browse the repository at this point in the history
…sing a batch when sync from L1 (0xPolygonHermez#3466)
  • Loading branch information
joanestebanr authored Mar 19, 2024
1 parent a6ba334 commit c1bd729
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions synchronizer/actions/etrog/processor_l1_sequence_batches.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,11 @@ func (p *ProcessorL1SequenceBatchesEtrog) checkTrustedState(ctx context.Context,
log.Warnf(errMsg)
reorgReasons.WriteString(errMsg)
}
if tBatch.WIP {
errMsg := batchNumStr + "Trusted batch is WIP\n"
log.Warnf(errMsg)
reorgReasons.WriteString(errMsg)
}

if reorgReasons.Len() > 0 {
reason := reorgReasons.String()
Expand Down

0 comments on commit c1bd729

Please sign in to comment.