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

fix: reserved byte for existing test cases #821

Merged
merged 1 commit into from
Sep 30, 2022

Conversation

rootulp
Copy link
Collaborator

@rootulp rootulp commented Sep 30, 2022

Closes #817

test: add test case for reserved byte that is not 14
@rootulp rootulp self-assigned this Sep 30, 2022
@rootulp rootulp marked this pull request as ready for review September 30, 2022 14:31
@rootulp rootulp enabled auto-merge (squash) September 30, 2022 15:21
Copy link
Member

@evan-forbes evan-forbes left a comment

Choose a reason for hiding this comment

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

nice, this unblocks #802

Comment on lines +170 to +173
// maybeWriteReservedByteToPendingShare will be a no-op if the reserved byte has
// already been populated. If the reserved byte is empty, it will write the
// location of the next unit of data to the reserved byte.
func (css *CompactShareSplitter) maybeWriteReservedByteToPendingShare() {
Copy link
Member

Choose a reason for hiding this comment

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

admittedly the naming for this maybe weird, but I also don't have any better options. hopefully whenever we have more time to refactor this we can and just have a method to write the reserved byte

@rootulp rootulp merged commit 56e96cf into celestiaorg:main Sep 30, 2022
rach-id pushed a commit to rach-id/celestia-app that referenced this pull request Nov 16, 2022
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.

Reserved byte in compact shares aren't set correctly
2 participants