solana/ledger
behzad nouri 11a53de0e3
rewrites Shredder::try_recovery (#21082)
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.
2021-11-04 16:15:51 +00:00
..
benches Refactor code to get block signatures in get_confirmed_signatures_for_address2 (#20575) 2021-10-13 09:55:19 +02:00
src rewrites Shredder::try_recovery (#21082) 2021-11-04 16:15:51 +00:00
tests Blockstore test cleanup (#19656) 2021-09-10 07:33:08 -05:00
.gitignore system_instruction_processor updates (#6448) 2019-10-19 18:23:27 -07:00
Cargo.toml chore: bump libc from 0.2.105 to 0.2.106 (#21093) 2021-11-01 14:17:45 -06:00
build.rs adds crds-value for broadcasting duplicate shreds through gossip (#14133) 2020-12-18 14:32:43 +00:00