forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removes fallible ErasureMeta.fec_set_index type-casts
fec_set_index is u32 by the definition in the shred struct. Blockstore however uses u64 for ErasureMeta.fec_set_index for backward compatibility reasons which results in weird typing and fallible conversions from u64 to u32. Any ErasureMeta with a fec_set_index which does not fit in u32 is invalid and should be discarded early. The commit changes ErasureMeta.fec_set_index type to u32 while using serde attributes to maintain backward compatibility for (de)serialization.
- Loading branch information
1 parent
40a9851
commit 067312a
Showing
1 changed file
with
38 additions
and
10 deletions.
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