solana/core
behzad nouri 9d112cf41f
encapsulates purged values bookkeeping into crds module (#17265)
For all code paths (gossip push, pull, purge, etc) that remove or
override a crds value, it is necessary to record hash of values purged
from crds table, in order to exclude them from subsequent pull-requests;
otherwise the next pull request will likely return outdated values,
wasting bandwidth:
https://github.com/solana-labs/solana/blob/ed51cde37/core/src/crds_gossip_pull.rs#L486-L491

Currently this is done all over the place in multiple modules, and this
has caused bugs in the past where purged values were not recorded.

This commit encapsulated this bookkeeping into crds module, so that any
code path which removes or overrides a crds value, also records the hash
of purged value in-place.
2021-05-24 13:47:21 +00:00
..
benches encapsulates purged values bookkeeping into crds module (#17265) 2021-05-24 13:47:21 +00:00
src encapsulates purged values bookkeeping into crds module (#17265) 2021-05-24 13:47:21 +00:00
tests encapsulates purged values bookkeeping into crds module (#17265) 2021-05-24 13:47:21 +00:00
.gitignore tmp dirs target to farf (#5079) 2019-07-12 18:28:42 -07:00
Cargo.toml Create solana-rpc crate and move subscriptions (#17320) 2021-05-19 00:54:28 -06:00
build.rs Remove frozen ABI modules from solana-sdk 2020-10-20 16:11:30 -07:00