11a53de0e3
For every missing data-shred, Shredder::try_recovery calls into new_empty_data_shred which does a redundant serialization into payload buffer which is then immediately overwritten by the erasure recovery: https://github.com/solana-labs/solana/blob/696501500/ledger/src/shred.rs#L372-L417 Additionally, the implementation is unnecessary complex hindering upcoming changes to erasure coding generation https://github.com/solana-labs/solana/blob/696501500/ledger/src/shred.rs#L814-L938 The commit simplifies the Shredder::try_recovery implementation. |
||
---|---|---|
.. | ||
blockstore | ||
ancestor_iterator.rs | ||
bank_forks_utils.rs | ||
bigtable_delete.rs | ||
bigtable_upload.rs | ||
bigtable_upload_service.rs | ||
block_error.rs | ||
blockstore.rs | ||
blockstore_db.rs | ||
blockstore_meta.rs | ||
blockstore_processor.rs | ||
builtins.rs | ||
erasure.rs | ||
genesis_utils.rs | ||
leader_schedule.rs | ||
leader_schedule_cache.rs | ||
leader_schedule_utils.rs | ||
lib.rs | ||
next_slots_iterator.rs | ||
rooted_slot_iterator.rs | ||
shred.rs | ||
sigverify_shreds.rs | ||
staking_utils.rs |