Skip to content

Commit

Permalink
fix noopHandler to never forward StepStalled blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
sduchesneau committed Jul 16, 2024
1 parent 01a9eea commit fa4afa9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions service/noopHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ func (n NoopHandler) ProcessBlock(blk *pbbstream.Block, obj interface{}) (err er
clock := pipeline.BlockToClock(blk)

step := obj.(bstream.Stepable).Step()
switch step {
case bstream.StepIrreversible,
bstream.StepNewIrreversible,
bstream.StepNew:
default:
return nil
}

cursor := &bstream.Cursor{
Step: step,
Expand Down

0 comments on commit fa4afa9

Please sign in to comment.