solana/ledger
mergify[bot] 3559062c00
caches vote-state de-serialized from vote accounts (#13795) (#13862)
Gossip and other places repeatedly de-serialize vote-state stored in
vote accounts. Ideally the first de-serialization should cache the
result.

This commit adds new VoteAccount type which lazily de-serializes
VoteState from Account data and caches the result internally.

Serialize and Deserialize traits are manually implemented to match
existing code. So, despite changes to frozen_abi, this commit should be
backward compatible.

(cherry picked from commit e1793e5a13)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
2020-11-30 18:36:23 +00:00
..
benches Add replacements for Pubkey::new_rand()/Hash::new_rand() (bp #12987) (#13076) 2020-10-22 05:08:01 +00:00
src caches vote-state de-serialized from vote accounts (#13795) (#13862) 2020-11-30 18:36:23 +00:00
tests Remove ledger purge batching (#10830) 2020-06-29 14:44:35 -07:00
.gitignore system_instruction_processor updates (#6448) 2019-10-19 18:23:27 -07:00
Cargo.toml Bump version to v1.4.14 (#13852) 2020-11-29 18:20:19 +00:00