Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(share/eds): Store nmt nodes on failed reconstruction #3305

Merged

Conversation

walldiss
Copy link
Member

Store repaired shares and calculated nmt proofs if reconstruction failed.

Wondertan
Wondertan previously approved these changes Apr 10, 2024
Copy link
Member

@Wondertan Wondertan left a comment

Choose a reason for hiding this comment

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

Looks correct. I feel like this needs a test, which will stay for after shwap times.

Wondertan
Wondertan previously approved these changes Apr 10, 2024
renaynay
renaynay previously approved these changes Apr 11, 2024
share/eds/retriever.go Outdated Show resolved Hide resolved
@walldiss walldiss enabled auto-merge (squash) April 13, 2024 14:37
@walldiss walldiss dismissed stale reviews from renaynay and Wondertan via daa9ec2 April 13, 2024 15:56
@codecov-commenter
Copy link

codecov-commenter commented Apr 13, 2024

Codecov Report

Attention: Patch coverage is 72.22222% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 45.20%. Comparing base (2469e7a) to head (41be7af).
Report is 24 commits behind head on main.

Files Patch % Lines
share/eds/retriever.go 72.22% 3 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3305      +/-   ##
==========================================
+ Coverage   44.83%   45.20%   +0.36%     
==========================================
  Files         265      272       +7     
  Lines       14620    14942     +322     
==========================================
+ Hits         6555     6754     +199     
- Misses       7313     7430     +117     
- Partials      752      758       +6     

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

Copy link
Member

@renaynay renaynay left a comment

Choose a reason for hiding this comment

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

Agree with hlib that this needs a test case -- I think we should make an issue or document some test cases somewhere that we need to implement.

@walldiss
Copy link
Member Author

Agree with hlib that this needs a test case -- I think we should make an issue or document some test cases somewhere that we need to implement.

#3314

@walldiss walldiss merged commit ad04298 into celestiaorg:main Apr 17, 2024
26 checks passed
Wondertan pushed a commit that referenced this pull request Apr 23, 2024
…struction (#3306)

We should not restrict the BEFP constructor to collect proof only for orthogonal axes to ErrByzantine. This PR enables the constructor to attempt building both Row and Col proofs, irrespective of the ErrByzantine axis type. Additionally, it prevents the BEFP constructor from requesting proofs pr shars from the network by granting access exclusively to the local blockstore. There should be sufficient proofs and shares in the local blockstore at the time BEFP is detected.

Breaks befp message, by introducing proofAxis field, which is not supported by older befp subscribers.

Depends on 
- #3305 to have enough data in blockstore.
- celestiaorg/rsmt2d#310 to provide proper coordinates of verified shares
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:p2p kind:feat Attached to feature PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants