Skip to content

core: dedup fetch contrib#4536

Closed
pinebit wants to merge 2 commits into
mainfrom
pinebit/fetcher-dedup
Closed

core: dedup fetch contrib#4536
pinebit wants to merge 2 commits into
mainfrom
pinebit/fetcher-dedup

Conversation

@pinebit
Copy link
Copy Markdown
Collaborator

@pinebit pinebit commented May 21, 2026

Added BN-response deduplication to fetchContributionData in core/fetcher/fetcher.go. The change caches SyncCommitteeContribution responses by (slot, subcommitteeIndex, beaconBlockRoot) so that multiple cluster validators that fall in the same subcommittee share one BN call instead of N.

Confirmed with teku-teku combo run in AWS. Next is to confirm the fix with all the combos.

category: refactor
ticket: none

@pinebit pinebit requested a review from KaloyanTanev May 21, 2026 13:15
@pinebit pinebit added the do not merge Indicate to bulldozer bot that this PR should not be merged label May 21, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 21, 2026

Codecov Report

❌ Patch coverage is 90.12346% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 57.14%. Comparing base (2c42245) to head (9289881).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
core/fetcher/fetcher.go 81.81% 2 Missing and 2 partials ⚠️
core/validatorapi/validatorapi.go 93.22% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4536      +/-   ##
==========================================
+ Coverage   57.01%   57.14%   +0.13%     
==========================================
  Files         245      245              
  Lines       32971    33069      +98     
==========================================
+ Hits        18799    18898      +99     
- Misses      11789    11790       +1     
+ Partials     2383     2381       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sonarqubecloud
Copy link
Copy Markdown

@pinebit pinebit closed this May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge Indicate to bulldozer bot that this PR should not be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant