solana/core/benches
Ryo Onodera cb8661bd49
Persistent tower (#10718)
* Save/restore Tower

* Avoid unwrap()

* Rebase cleanups

* Forcibly pass test

* Correct reconcilation of votes after validator resume

* d b g

* Add more tests

* fsync and fix test

* Add test

* Fix fmt

* Debug

* Fix tests...

* save

* Clarify error message and code cleaning around it

* Move most of code out of tower save hot codepath

* Proper comment for the lack of fsync on tower

* Clean up

* Clean up

* Simpler type alias

* Manage tower-restored ancestor slots without banks

* Add comment

* Extract long code blocks...

* Add comment

* Simplify returned tuple...

* Tweak too aggresive log

* Fix typo...

* Add test

* Update comment

* Improve test to require non-empty stray restored slots

* Measure tower save and dump all tower contents

* Log adjust and add threshold related assertions

* cleanup adjust

* Properly lower stray restored slots priority...

* Rust fmt

* Fix test....

* Clarify comments a bit and add TowerError::TooNew

* Further clean-up arround TowerError

* Truly create ancestors by excluding last vote slot

* Add comment for stray_restored_slots

* Add comment for stray_restored_slots

* Use BTreeSet

* Consider root_slot into post-replay adjustment

* Tweak logging

* Add test for stray_restored_ancestors

* Reorder some code

* Better names for unit tests

* Add frozen_abi to SavedTower

* Fold long lines

* Tweak stray ancestors and too old slot history

* Re-adjust error conditon of too old slot history

* Test normal ancestors is checked before stray ones

* Fix conflict, update tests, adjust behavior a bit

* Fix test

* Address review comments

* Last touch!

* Immediately after creating cleaning pr

* Revert stray slots

* Revert comment...

* Report error as metrics

* Revert not to panic! and ignore unfixable test...

* Normalize lockouts.root_slot more strictly

* Add comments for panic! and more assertions

* Proper initialize root without vote account

* Clarify code and comments based on review feedback

* Fix rebase

* Further simplify based on assured tower root

* Reorder code for more readability

Co-authored-by: Michael Vines <mvines@gmail.com>
2020-09-19 14:03:54 +09:00
..
banking_stage.rs Address latest nightly clippy lints, but globally disable stable_sort_primitive 2020-08-17 22:36:10 -07:00
blockstore.rs Clippy cleanup for all targets and nighly rust (also support 1.44.0) (#10445) 2020-06-09 09:38:14 +09:00
cluster_info.rs Clippy cleanup for all targets and nighly rust (also support 1.44.0) (#10445) 2020-06-09 09:38:14 +09:00
consensus.rs Persistent tower (#10718) 2020-09-19 14:03:54 +09:00
crds_gossip_pull.rs uses rust intrinsics to convert hashes to u64 (#12097) 2020-09-09 15:28:17 +00:00
crds_shards.rs shards crds values based on their hash prefix (#12187) 2020-09-17 14:05:16 +00:00
gen_keys.rs
poh.rs Add solana-ledger crate (#6415) 2019-10-18 09:28:51 -07:00
poh_verify.rs Simd poh (#10604) 2020-06-16 23:03:26 -07:00
retransmit_stage.rs Address latest nightly clippy lints, but globally disable stable_sort_primitive 2020-08-17 22:36:10 -07:00
shredder.rs Bench RaptorQ (#10886) 2020-07-02 18:31:32 -07:00
sigverify_stage.rs Clippy cleanup for all targets and nighly rust (also support 1.44.0) (#10445) 2020-06-09 09:38:14 +09:00