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
@@ -16,6 +16,7 @@ error-chain = "0.12"
bitflags = "1.0"
futures = "0.1.17"
linked-hash-map = "0.5"
linked_hash_set = "0.1.3"
lru-cache = "0.1.1"
rustc-hex = "2.0"
rand = "0.6"