Update trie crate to hashbrown usage. (#3440)

* Update trie crate to non hashmap_core one.

* bump runtime impl.
This commit is contained in:
cheme
2019-08-19 15:59:37 +02:00
committed by Bastian Köcher
parent 6fb721e861
commit 95abffc8e4
12 changed files with 111 additions and 72 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ state-machine = { package = "substrate-state-machine", path = "../state-machine"
keyring = { package = "substrate-keyring", path = "../keyring", optional = true }
trie = { package = "substrate-trie", path = "../trie", optional = true }
substrate-telemetry = { path = "../telemetry", optional = true }
hash-db = { version = "0.15.0", default-features = false }
hash-db = { version = "0.15.2", default-features = false }
kvdb = { git = "https://github.com/paritytech/parity-common", optional = true, rev="b0317f649ab2c665b7987b8475878fc4d2e1f81d" }
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
primitives = { package = "substrate-primitives", path = "../primitives", default-features = false }
+1 -1
View File
@@ -12,7 +12,7 @@ kvdb = { git = "https://github.com/paritytech/parity-common", rev="b0317f649ab2c
kvdb-rocksdb = { git = "https://github.com/paritytech/parity-common", rev="b0317f649ab2c665b7987b8475878fc4d2e1f81d", optional = true }
kvdb-memorydb = { git = "https://github.com/paritytech/parity-common", rev="b0317f649ab2c665b7987b8475878fc4d2e1f81d" }
linked-hash-map = "0.5"
hash-db = { version = "0.15.0" }
hash-db = { version = "0.15.2" }
primitives = { package = "substrate-primitives", path = "../../primitives" }
sr-primitives = { path = "../../sr-primitives" }
client = { package = "substrate-client", path = "../../client" }
+2 -2
View File
@@ -14,8 +14,8 @@ byteorder = { version = "1.3.1", default-features = false }
primitive-types = { version = "0.5.0", default-features = false, features = ["codec"] }
impl-serde = { version = "0.1", optional = true }
wasmi = { version = "0.5.0", optional = true }
hash-db = { version = "0.15.0", default-features = false }
hash256-std-hasher = { version = "0.15.0", default-features = false }
hash-db = { version = "0.15.2", default-features = false }
hash256-std-hasher = { version = "0.15.2", default-features = false }
ed25519-dalek = { version = "1.0.0-pre.1", optional = true }
base58 = { version = "0.1", optional = true }
blake2-rfc = { version = "0.2.18", optional = true }
+1 -1
View File
@@ -12,7 +12,7 @@ rustc_version = "0.2"
rstd = { package = "sr-std", path = "../sr-std", default-features = false }
primitives = { package = "substrate-primitives", path = "../primitives", default-features = false }
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false }
hash-db = { version = "0.15.0", default-features = false }
hash-db = { version = "0.15.2", default-features = false }
libsecp256k1 = { version = "0.2.1", optional = true }
tiny-keccak = { version = "1.4.2", optional = true }
environmental = { version = "1.0.1", optional = true }
+3 -3
View File
@@ -8,9 +8,9 @@ edition = "2018"
[dependencies]
log = "0.4"
parking_lot = "0.9.0"
hash-db = "0.15.0"
trie-db = "0.15.0"
trie-root = "0.15.0"
hash-db = "0.15.2"
trie-db = "0.15.2"
trie-root = "0.15.2"
trie = { package = "substrate-trie", path = "../trie" }
primitives = { package = "substrate-primitives", path = "../primitives" }
panic-handler = { package = "substrate-panic-handler", path = "../panic-handler" }
+1 -1
View File
@@ -10,7 +10,7 @@ client-db = { package = "substrate-client-db", path = "../client/db", features =
consensus = { package = "substrate-consensus-common", path = "../consensus/common" }
executor = { package = "substrate-executor", path = "../executor" }
futures-preview = "=0.3.0-alpha.17"
hash-db = "0.15.0"
hash-db = "0.15.2"
keyring = { package = "substrate-keyring", path = "../keyring" }
codec = { package = "parity-scale-codec", version = "1.0.0" }
primitives = { package = "substrate-primitives", path = "../primitives" }
+2 -2
View File
@@ -23,8 +23,8 @@ session = { package = "substrate-session", path = "../session", default-features
runtime_version = { package = "sr-version", path = "../sr-version", default-features = false }
runtime_support = { package = "srml-support", path = "../../srml/support", default-features = false }
substrate-trie = { path = "../trie", default-features = false }
trie-db = { version = "0.15.0", default-features = false }
memory-db = { version = "0.15.0", default-features = false }
trie-db = { version = "0.15.2", default-features = false }
memory-db = { version = "0.15.2", default-features = false }
offchain-primitives = { package = "substrate-offchain-primitives", path = "../offchain/primitives", default-features = false}
executive = { package = "srml-executive", path = "../../srml/executive", default-features = false }
cfg-if = "0.1.6"
+7 -7
View File
@@ -14,16 +14,16 @@ harness = false
[dependencies]
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false }
rstd = { package = "sr-std", path = "../sr-std", default-features = false }
hash-db = { version = "0.15.0", default-features = false }
trie-db = { version = "0.15.0", default-features = false }
trie-root = { version = "0.15.0", default-features = false }
memory-db = { version = "0.15.0", default-features = false }
hash-db = { version = "0.15.2", default-features = false }
trie-db = { version = "0.15.2", default-features = false }
trie-root = { version = "0.15.2", default-features = false }
memory-db = { version = "0.15.2", default-features = false }
primitives = { package = "substrate-primitives", path = "../primitives", default-features = false }
[dev-dependencies]
trie-bench = { version = "0.16.0" }
trie-standardmap = { version = "0.15.0" }
keccak-hasher = { version = "0.15.0" }
trie-bench = { version = "0.16.2" }
trie-standardmap = { version = "0.15.2" }
keccak-hasher = { version = "0.15.2" }
criterion = "0.2"
hex-literal = "0.2.0"