Remove enumerate_trie_root in favour of ordered_trie_root #2382 (#3360)

This commit is contained in:
Juan Aguilar authored and Gavin Wood committed 2019-08-12 16:13:02 +02:00
1 parent 70d716dc48
commit db5e6712d7
8 files changed
+29 -46

No files matched your search

-8
View File
@@ -167,14 +167,6 @@ impl StorageApi for () {
).unwrap_or(Ok(None)).expect("Invalid parent hash passed to storage_changes_root")
}
fn enumerated_trie_root<H>(input: &[&[u8]]) -> H::Out
where
H: Hasher,
H::Out: Ord,
{
Layout::<H>::ordered_trie_root(input)
}
fn trie_root<H, I, A, B>(input: I) -> H::Out
where
I: IntoIterator<Item = (A, B)>,