Skip to content

feat(cctp): parallelize attestation fetching with bounded worker pool#1011

Draft
asoliman92 wants to merge 1 commit intomainfrom
asoliman/cctp-concurrent-fetch
Draft

feat(cctp): parallelize attestation fetching with bounded worker pool#1011
asoliman92 wants to merge 1 commit intomainfrom
asoliman/cctp-concurrent-fetch

Conversation

@asoliman92
Copy link
Copy Markdown
Contributor

Circle's attestation API does not support batching, so each task requires a separate HTTP call. Process tasks concurrently using an errgroup capped at 10 workers to avoid sequential bottlenecks on large batches without unbounded goroutine spawning. The 10 cap is simialr to what we have in v1.6 at the moment.

Circle's attestation API does not support batching, so each task
requires a separate HTTP call. Process tasks concurrently using an
errgroup capped at 10 workers to avoid sequential bottlenecks on
large batches without unbounded goroutine spawning. The 10 cap is
simialr to what we have in v1.6 at the moment.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 9, 2026

Code coverage report:

Package main asoliman/cctp-concurrent-fetch diff
github.com/smartcontractkit/chainlink-ccv/aggregator 48.46% 48.46% +0.00%
github.com/smartcontractkit/chainlink-ccv/bootstrap 42.35% 42.35% +0.00%
github.com/smartcontractkit/chainlink-ccv/cli 65.13% 65.13% +0.00%
github.com/smartcontractkit/chainlink-ccv/cmd 0.00% 0.00% +0.00%
github.com/smartcontractkit/chainlink-ccv/common 50.74% 50.74% +0.00%
github.com/smartcontractkit/chainlink-ccv/executor 45.74% 45.74% +0.00%
github.com/smartcontractkit/chainlink-ccv/indexer 37.46% 37.46% +0.00%
github.com/smartcontractkit/chainlink-ccv/integration 47.97% 48.07% +0.10%
github.com/smartcontractkit/chainlink-ccv/pkg 38.00% 38.00% +0.00%
github.com/smartcontractkit/chainlink-ccv/pricer 0.00% 0.00% +0.00%
github.com/smartcontractkit/chainlink-ccv/protocol 68.02% 67.92% -0.10%
github.com/smartcontractkit/chainlink-ccv/verifier 31.90% 32.44% +0.54%

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.

1 participant