Limit the set of known extrinsics and blocks. (#1842)

* Limit the set of known extrinsics and blocks.

* Update Cargo.lock

* Always insert and pop oldest entry if needed.

Always inserting first ensures that the element's LRU position is
updated.
This commit is contained in:
Toralf Wittner
2019-02-21 19:24:23 +01:00
committed by Gav Wood
parent 22aa8482ae
commit 4bf4b37185
5 changed files with 97 additions and 9 deletions
+1
View File
@@ -27,6 +27,7 @@ mod protocol;
mod chain;
mod blocks;
mod on_demand;
mod util;
pub mod config;
pub mod consensus_gossip;
pub mod error;