Skip to content

Conversation

@KaloyanTanev
Copy link
Collaborator

When we fetch attestation data with the fetcher, we are doing this in a loop, which takes variable amount of time, based on the beacon node's performance. If the beacon node is underperforming it might be that in the middle of this loop it receives a new block. This will result some attestation datas having the up to date head, while others have an old head.

In a good scenario of well performing beacon node, the heads will be the same and the value and attData.Data will be equal. However, in the scenario explained above, their head will missmatch, resulting in inequality.

That's why we are checking here only if source and target missmatch.

category: bug
ticket: none

@sonarqubecloud
Copy link

@codecov
Copy link

codecov bot commented Sep 12, 2025

Codecov Report

❌ Patch coverage is 31.81818% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 55.10%. Comparing base (3b4138d) to head (69a9112).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
core/dutydb/memory.go 31.81% 13 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3974      +/-   ##
==========================================
+ Coverage   55.08%   55.10%   +0.02%     
==========================================
  Files         225      225              
  Lines       37237    37257      +20     
==========================================
+ Hits        20511    20530      +19     
- Misses      14555    14557       +2     
+ Partials     2171     2170       -1     

☔ 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.

@KaloyanTanev KaloyanTanev added the merge when ready Indicates bulldozer bot may merge when all checks pass label Sep 12, 2025
@obol-bulldozer obol-bulldozer bot merged commit 8645af1 into main Sep 12, 2025
11 of 13 checks passed
@obol-bulldozer obol-bulldozer bot deleted the kalo/check-only-source-and-target-commidx0 branch September 12, 2025 15:17
KaloyanTanev added a commit that referenced this pull request Sep 12, 2025
When we fetch attestation data with the fetcher, we are doing this in a loop, which takes variable amount of time, based on the beacon node's performance. If the beacon node is underperforming it might be that in the middle of this loop it receives a new block. This will result some attestation datas having the up to date head, while others have an old head.

In a good scenario of well performing beacon node, the heads will be the same and the `value` and `attData.Data` will be equal. However, in the scenario explained above, their head will missmatch, resulting in inequality.

That's why we are checking here only if source and target missmatch.

category: bug
ticket: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge when ready Indicates bulldozer bot may merge when all checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants