solana/ledger/src
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
..
blockstore Blockstore test cleanup (#19656) 2021-09-10 07:33:08 -05:00
ancestor_iterator.rs Blockstore test cleanup (#19656) 2021-09-10 07:33:08 -05:00
bank_forks_utils.rs add filler accounts to bloat validator and predict failure (#20491) 2021-10-11 12:46:27 -05:00
bigtable_delete.rs Add `delete` subcommand to `ledger-tool bigtable` (#19931) 2021-09-16 23:37:45 +00:00
bigtable_upload.rs Rpc: enable getConfirmedBlock and getConfirmedTransaction to return confirmed (not yet finalized) data (#16142) 2021-03-26 16:47:35 -06:00
bigtable_upload_service.rs Create solana-poh and move remaining rpc modules to solana-rpc (#17698) 2021-06-04 09:23:06 -06:00
block_error.rs Lower blockstore processor error severity (#15578) 2021-03-01 14:57:37 -08:00
blockstore.rs optimizes and simplifies SlotMeta::completed_data_indexes ops (#21059) 2021-10-31 12:56:25 +00:00
blockstore_db.rs Populate memo in blockstore signatures-for-address (#19515) 2021-09-03 00:28:52 -06:00
blockstore_meta.rs optimizes and simplifies SlotMeta::completed_data_indexes ops (#21059) 2021-10-31 12:56:25 +00:00
blockstore_processor.rs Clean up sanitized tx creation for tests (#21006) 2021-10-27 18:09:16 +01:00
builtins.rs nit: Move builtins types to builtins file (#19597) 2021-09-02 21:29:11 -07:00
erasure.rs rewrites Shredder::try_recovery (#21082) 2021-11-04 16:15:51 +00:00
genesis_utils.rs
leader_schedule.rs clippy 2021-04-18 20:55:02 -07:00
leader_schedule_cache.rs Blockstore test cleanup (#19656) 2021-09-10 07:33:08 -05:00
leader_schedule_utils.rs implements copy-on-write for staked-nodes (#19090) 2021-08-10 12:59:12 +00:00
lib.rs - move cost tracker into bank, so each bank has its own cost tracker; (#20527) 2021-10-12 08:51:33 -05:00
next_slots_iterator.rs Blockstore test cleanup (#19656) 2021-09-10 07:33:08 -05:00
rooted_slot_iterator.rs Blockstore test cleanup (#19656) 2021-09-10 07:33:08 -05:00
shred.rs rewrites Shredder::try_recovery (#21082) 2021-11-04 16:15:51 +00:00
sigverify_shreds.rs Resolve nightly-2021-10-05 clippy complaints 2021-10-06 10:37:58 -07:00
staking_utils.rs removes unused code from staking_utils (#19189) 2021-08-13 02:42:41 +00:00