Skip to content

Commit

Permalink
Add MaxStopBlock variable to blockpoller
Browse files Browse the repository at this point in the history
Introduce a MaxStopBlock variable to be used in the BlockPoller. This change helps manage the upper limit for block polling, allowing more flexibility and control over the polling process.
  • Loading branch information
billettc committed Nov 21, 2024
1 parent cf7a94a commit 0f91a00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions blockpoller/poller.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ func New[C any](
return b
}

var MaxStopBlock *uint64 = nil

func (p *BlockPoller[C]) Run(firstStreamableBlockNum uint64, stopBlock *uint64, blockFetchBatchSize int) error {
p.startBlockNumGate = firstStreamableBlockNum
p.logger.Info("starting poller",
Expand Down

0 comments on commit 0f91a00

Please sign in to comment.