solana/ledger-tool
behzad nouri e1793e5a13
caches vote-state de-serialized from vote accounts (#13795)
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.
2020-11-30 17:18:33 +00:00
..
src caches vote-state de-serialized from vote accounts (#13795) 2020-11-30 17:18:33 +00:00
tests Better slot printing (#10811) 2020-06-27 10:47:02 -07:00
.gitignore tmp dirs target to farf (#5079) 2019-07-12 18:28:42 -07:00
Cargo.toml chore: bump futures from 0.3.5 to 0.3.8 2020-11-14 08:31:19 -08:00