Availability store pruning (#1820)
* Initial commit * Move tests to separate module * Move timestamps to the newtype * Change idx name * Use Duration for consts and update chunk records * Ordering::Equal * Update node/core/av-store/src/lib.rs Co-authored-by:Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com> * put_ methods do the array sorting * Fix get_block_number * Change StoreChunk message type and relay parent method * Add chunk tests * Fix block number computation for StoreChunk * Duration instead of u64 everywhere * Add a clarifying comment Co-authored-by:
Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com>
Showing
- polkadot/Cargo.lock 3 additions, 0 deletionspolkadot/Cargo.lock
- polkadot/node/core/av-store/Cargo.toml 11 additions, 8 deletionspolkadot/node/core/av-store/Cargo.toml
- polkadot/node/core/av-store/src/lib.rs 709 additions, 260 deletionspolkadot/node/core/av-store/src/lib.rs
- polkadot/node/core/av-store/src/tests.rs 828 additions, 0 deletionspolkadot/node/core/av-store/src/tests.rs
- polkadot/node/network/availability-distribution/src/lib.rs 9 additions, 1 deletionpolkadot/node/network/availability-distribution/src/lib.rs
- polkadot/node/subsystem/src/messages.rs 14 additions, 8 deletionspolkadot/node/subsystem/src/messages.rs
Please register or sign in to comment