We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b54cf9a commit aa8a6eeCopy full SHA for aa8a6ee
internal/orchestrator/poller.go
@@ -288,7 +288,13 @@ func (p *Poller) stageResults(blockData []common.BlockData) error {
288
}
289
290
func (p *Poller) reachedPollLimit(blockNumber *big.Int) bool {
291
- return blockNumber == nil || (p.pollUntilBlock.Sign() > 0 && blockNumber.Cmp(p.pollUntilBlock) >= 0)
+ if blockNumber == nil {
292
+ return true
293
+ }
294
+ if p.pollUntilBlock == nil || p.pollUntilBlock.Sign() == 0 {
295
+ return false
296
297
+ return blockNumber.Cmp(p.pollUntilBlock) >= 0
298
299
300
func (p *Poller) getNextBlockRange(ctx context.Context) ([]*big.Int, error) {
0 commit comments