Optimizations of av-store (#2223)

* Store all chunks and in a single transaction

* Adds chunks LRU to store

* Add pruning records metrics

* Use honest cache instead of LRU

* Remove unnecessary optional cache

* Fix review nits that are fixable
This commit is contained in:
Fedor Sakharov
2021-01-08 00:00:30 +03:00
committed by GitHub
parent 0d614374e9
commit b97f52a4c8
6 changed files with 122 additions and 77 deletions
-2
View File
@@ -309,8 +309,6 @@ pub enum AvailabilityStoreMessage {
candidate_hash: CandidateHash,
/// A relevant relay parent.
relay_parent: Hash,
/// The index of the validator this chunk belongs to.
validator_index: ValidatorIndex,
/// The chunk itself.
chunk: ErasureChunk,
/// Sending side of the channel to send result to.