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

+1 -1
View File
@@ -147,7 +147,7 @@ pub fn extrinsics_root<H: Hash, E: codec::Encode>(extrinsics: &[E]) -> H::Output
/// Compute the trie root of a list of extrinsics.
pub fn extrinsics_data_root<H: Hash>(xts: Vec<Vec<u8>>) -> H::Output {
let xts = xts.iter().map(Vec::as_slice).collect::<Vec<_>>();
H::enumerated_trie_root(&xts)
H::ordered_trie_root(&xts)
}
pub trait Trait: 'static + Eq + Clone {