Allow empty values in the storage (#6364)

* Allow empty values in the storage

* Bump trie-bench

* Bump trie-bench
This commit is contained in:
Arkadiy Paronyan
2020-06-18 09:36:52 +02:00
committed by GitHub
parent a43a755a91
commit f05ae63afa
8 changed files with 53 additions and 16 deletions
+3 -3
View File
@@ -20,13 +20,13 @@ harness = false
codec = { package = "parity-scale-codec", version = "1.3.0", default-features = false }
sp-std = { version = "2.0.0-rc3", default-features = false, path = "../std" }
hash-db = { version = "0.15.2", default-features = false }
trie-db = { version = "0.20.1", default-features = false }
trie-db = { version = "0.21.0", default-features = false }
trie-root = { version = "0.16.0", default-features = false }
memory-db = { version = "0.20.0", default-features = false }
memory-db = { version = "0.21.0", default-features = false }
sp-core = { version = "2.0.0-rc3", default-features = false, path = "../core" }
[dev-dependencies]
trie-bench = "0.21.0"
trie-bench = "0.22.0"
trie-standardmap = "0.15.2"
criterion = "0.2.11"
hex-literal = "0.2.1"
+1
View File
@@ -51,6 +51,7 @@ pub struct Layout<H>(sp_std::marker::PhantomData<H>);
impl<H: Hasher> TrieLayout for Layout<H> {
const USE_EXTENSION: bool = false;
const ALLOW_EMPTY: bool = true;
type Hash = H;
type Codec = NodeCodec<Self::Hash>;
}