-
Notifications
You must be signed in to change notification settings - Fork 289
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: support parsing out of context compact shares #1770
Merged
evan-forbes
merged 15 commits into
celestiaorg:main
from
Manav-Aggarwal:manav/support_out_of_context_shares
May 22, 2023
Merged
Changes from 7 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
b51976a
support out of context shares
Manav-Aggarwal ab7152a
Add test for out of context shares
Manav-Aggarwal 01282c4
Merge branch 'main' into manav/support_out_of_context_shares
Manav-Aggarwal ba2d14f
Add explicit return to getRandomSlice
Manav-Aggarwal 05042aa
Update comment for checkSubArray
Manav-Aggarwal 7073126
use ParseTxs instead of parseCompactShares
Manav-Aggarwal 792841d
Merge branch 'main' into manav/support_out_of_context_shares
Manav-Aggarwal b802fa0
address comments
Manav-Aggarwal 6f8697b
Add test for out of context shares using share ranges
Manav-Aggarwal 1a27120
run go linter
Manav-Aggarwal d91cee2
Merge branch 'main' into manav/support_out_of_context_shares
Manav-Aggarwal 54048d0
refactor rawDataStartIndexUsingReserved
Manav-Aggarwal a97ecc5
Merge branch 'main' into manav/support_out_of_context_shares
evan-forbes 1139a4e
add better comments
Manav-Aggarwal b2d14ad
Merge branch 'main' into manav/support_out_of_context_shares
evan-forbes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[optional] in addition to this test, should we consider adding a test case for https://github.com/rootulp/celestia-app/blob/01282c42a8b1d7ea2cfd325c2ed10aed4c317966/pkg/shares/parse.go#L12 that tests out of context shares?
Motivation:
parseCompactShares
is private andParseTxs
is public.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since
ParseTxs
usesparseCompactShares
under the hood so instead of adding another test, modified this test usingParseTxs
to make it simpler.