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

patches shred::merkle::make_shreds_from_data when data is empty #29295

Merged
merged 1 commit into from
Dec 16, 2022

Conversation

behzadnouri
Copy link
Contributor

Problem

Even though it does not happen in production, make_shreds_from_data can still work with empty data.

Summary of Changes

If data is empty, make_shreds_from_data will now return one data shred with empty data. This preserves invariants verified in tests regardless of data size.

If data is empty, make_shreds_from_data will now return one data shred
with empty data. This preserves invariants verified in tests regardless
of data size.
@behzadnouri behzadnouri merged commit 92ca725 into solana-labs:master Dec 16, 2022
@behzadnouri behzadnouri deleted the merkle-shred-audit branch December 16, 2022 18:56
mergify bot pushed a commit that referenced this pull request Dec 16, 2022
If data is empty, make_shreds_from_data will now return one data shred
with empty data. This preserves invariants verified in tests regardless
of data size.

(cherry picked from commit 92ca725)
mergify bot added a commit that referenced this pull request Dec 16, 2022
…port #29295) (#29306)

patches shred::merkle::make_shreds_from_data when data is empty (#29295)

If data is empty, make_shreds_from_data will now return one data shred
with empty data. This preserves invariants verified in tests regardless
of data size.

(cherry picked from commit 92ca725)

Co-authored-by: behzad nouri <[email protected]>
nickfrosty pushed a commit to nickfrosty/solana that referenced this pull request Jan 4, 2023
…na-labs#29295)

If data is empty, make_shreds_from_data will now return one data shred
with empty data. This preserves invariants verified in tests regardless
of data size.
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.

1 participant