Skip to content

Commit

Permalink
re-add batch finalization progress log
Browse files Browse the repository at this point in the history
  • Loading branch information
Thegaram committed Oct 26, 2023
1 parent f25c064 commit 624749c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rollup/rollup_sync_service/rollup_sync_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@ func (s *RollupSyncService) parseAndUpdateRollupEventLogs(logs []types.Log, endB
log.Crit("Failed to write batch to database", "err", err)
}

if batchIndex%100 == 0 {
log.Info("finalized batch progress", "batch index", batchIndex, "finalized l2 block height", endBlock)
}

default:
return fmt.Errorf("unknown event, topic: %v, tx hash: %v", vLog.Topics[0].Hex(), vLog.TxHash.Hex())
}
Expand Down

0 comments on commit 624749c

Please sign in to comment.