Skip to content

request proof only if proofByNonce missing#7904

Merged
BeniaminDrasovean merged 2 commits into
masterfrom
request-proof-fix
Jul 9, 2026
Merged

request proof only if proofByNonce missing#7904
BeniaminDrasovean merged 2 commits into
masterfrom
request-proof-fix

Conversation

@BeniaminDrasovean

Copy link
Copy Markdown
Contributor

Reasoning behind the pull request

Proposed changes

Testing procedure

Pre-requisites

Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:

  • was the PR targeted to the correct branch?
  • if this is a larger feature that probably needs more than one PR, is there a feat branch created?
  • if this is a feat branch merging, do all satellite projects have a proper tag inside go.mod?

Comment on lines +1224 to +1229
if !bp.enableEpochsHandler.IsFlagEnabledInEpoch(common.AndromedaFlag, headers[index].GetEpoch()) {
continue
}

_, err = bp.proofsPool.GetProofByNonce(i, shardID)
if err != nil {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these really needed? these checks are already done in requestProofIfNeeded, or is it just for checking by nonce?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to check by nonce. Without this, we could request a hash that was never finalized, so no one would send the data for that hash, thus waiting indefinitely.

@codecov

codecov Bot commented Jul 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.63%. Comparing base (54855d9) to head (21be204).
⚠️ Report is 13 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7904      +/-   ##
==========================================
+ Coverage   76.62%   76.63%   +0.01%     
==========================================
  Files         814      815       +1     
  Lines      111225   111250      +25     
==========================================
+ Hits        85224    85260      +36     
+ Misses      20187    20174      -13     
- Partials     5814     5816       +2     

☔ View full report in Codecov by Harness.
📢 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.

@BeniaminDrasovean BeniaminDrasovean merged commit 2449a76 into master Jul 9, 2026
13 of 14 checks passed
@BeniaminDrasovean BeniaminDrasovean deleted the request-proof-fix branch July 9, 2026 10:43
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.

4 participants