Skip to content

Commit c4e9b82

Browse files
committed
chore: log unwinding status
1 parent c0e2e79 commit c4e9b82

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

server/l2.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ func (l2 *L2) processBlock(ctx context.Context, blockNumber uint64) error {
333333
metrics.ReorgsCount.Add(ctx, 1)
334334
metrics.ReorgDepth.Record(ctx, int64(depth))
335335

336-
l.Warn("Chain reorg detected via hash mismatch",
336+
l.Info("Finished the unwind",
337337
zap.Uint64("reorg_depth", depth),
338338
zap.Uint64("old_block_number", l2.unwindByHashHeight),
339339
)
@@ -468,6 +468,10 @@ func (l2 *L2) processReorgByHash(ctx context.Context) error {
468468
if block.Hash().Cmp(br.Hash) == 0 {
469469
return nil
470470
}
471+
472+
l.Info("Unwinding...",
473+
zap.Uint64("block_number", l2.blockHeight),
474+
)
471475
}
472476

473477
return nil

0 commit comments

Comments
 (0)