solana/ledger
Lijun Wang 269d995832
Make account shrink configurable #17544 (#17778)
1. Added both options for measuring space usage using total accounts usage and for individual store shrink ratio using an enum. Validator CLI options: --accounts-shrink-optimize-total-space and --accounts-shrink-ratio
2. Added code for selecting candidates based on total usage in a separate function select_candidates_by_total_usage
3. Added unit tests for the new functions added
4. The default implementations is kept at 0.8 shrink ratio with --accounts-shrink-optimize-total-space set to true

Fixes #17544
2021-06-09 21:21:32 -07:00
..
benches Revert "Add limit and shrink policy for recycler (#15320)" 2021-04-18 19:29:24 +00:00
src Make account shrink configurable #17544 (#17778) 2021-06-09 21:21:32 -07:00
tests removes first_coding_index from erasure recovery code (#16646) 2021-04-23 12:00:37 +00:00
.gitignore system_instruction_processor updates (#6448) 2019-10-19 18:23:27 -07:00
Cargo.toml chore: bump rustc_version from 0.2.3 to 0.4.0 (#17854) 2021-06-09 16:57:39 +00:00
build.rs adds crds-value for broadcasting duplicate shreds through gossip (#14133) 2020-12-18 14:32:43 +00:00