Skip to content

Commit

Permalink
add log to validate steps
Browse files Browse the repository at this point in the history
  • Loading branch information
billettc committed Feb 8, 2024
1 parent 6eac855 commit 7b4e949
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ func (db *OperationDB) AddOperation(op *pbkv.KVOperation) {
}
func (db *OperationDB) HandleOperations(ctx context.Context, blockNumber uint64, finalBlockHeight uint64, step bstream.StepType, kvOps *pbkv.KVOperations) error {
if step == bstream.StepNew {
db.logger.Info("handling undos", zap.Uint64("block_number", blockNumber), zap.Int("step", int(step)))
err := db.PurgeUndoOperations(ctx, finalBlockHeight)
if err != nil {
return fmt.Errorf("deleting LIB undo operations: %w", err)
Expand Down

0 comments on commit 7b4e949

Please sign in to comment.