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 authored and GitHub committed 2021-01-07 21:00:30 +00:00
1 parent 0d614374e9
commit b97f52a4c8
6 files changed
+122 -77

No files matched your search

-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.