Skip to content

fix: pass unbounded queries through without bisection - #1429

Merged
nvsriram merged 4 commits into
mainfrom
fix/CCIP-13468-remove-last-fetch
Sep 9, 2026
Merged

fix: pass unbounded queries through without bisection#1429
nvsriram merged 4 commits into
mainfrom
fix/CCIP-13468-remove-last-fetch

Conversation

@nvsriram

@nvsriram nvsriram commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

This PR removes the LatestAndFinalizedBlock call for unbounded queries and send them through without bisection. This is in order to avoid running into "block range extends beyond current head block" error when the node that returned the value of LatestAndFinalizedBlock returned a block that is ahead of the node that handled the FilterLogs call

This PR reverts the bisection logic and reduces the DefaultMaxBlockRange to 100 (from 1500)

@nvsriram
nvsriram marked this pull request as ready for review September 8, 2026 14:27
@nvsriram
nvsriram requested a review from a team as a code owner September 8, 2026 14:27
makramkd
makramkd previously approved these changes Sep 8, 2026
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown

Code coverage report:

Package main fix/CCIP-13468-remove-last-fetch Diff
github.com/smartcontractkit/chainlink-ccv/aggregator 50.79% 50.86% +0.07%
github.com/smartcontractkit/chainlink-ccv/bootstrap 72.00% 72.00% +0.00%
github.com/smartcontractkit/chainlink-ccv/cli 58.12% 58.12% +0.00%
github.com/smartcontractkit/chainlink-ccv/cmd 35.65% 35.65% +0.00%
github.com/smartcontractkit/chainlink-ccv/common 47.76% 47.76% +0.00%
github.com/smartcontractkit/chainlink-ccv/executor 42.80% 42.80% +0.00%
github.com/smartcontractkit/chainlink-ccv/indexer 35.55% 35.59% +0.04%
github.com/smartcontractkit/chainlink-ccv/integration 59.08% 59.68% +0.60%
github.com/smartcontractkit/chainlink-ccv/internal 0.00% 0.00% +0.00%
github.com/smartcontractkit/chainlink-ccv/migration 78.70% 78.70% +0.00%
github.com/smartcontractkit/chainlink-ccv/pkg 100.00% 100.00% +0.00%
github.com/smartcontractkit/chainlink-ccv/pricer 0.00% 0.00% +0.00%
github.com/smartcontractkit/chainlink-ccv/protocol 63.36% 63.46% +0.10%
github.com/smartcontractkit/chainlink-ccv/tools 38.61% 38.61% +0.00%
github.com/smartcontractkit/chainlink-ccv/verifier 36.57% 36.57% +0.00%
Total 50.80% 50.60% -0.20%

@nvsriram
nvsriram added this pull request to the merge queue Sep 9, 2026
Merged via the queue into main with commit 0228036 Sep 9, 2026
55 checks passed
@nvsriram
nvsriram deleted the fix/CCIP-13468-remove-last-fetch branch September 9, 2026 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants