Companion for BEEFY: Simplify hashing for pallet-beefy-mmr (#6098)

* beefy-mmr: Simplify hashing

* update lockfile for {"substrate"}

Co-authored-by: parity-processbot <>
This commit is contained in:
Serban Iorga
2022-10-04 12:25:48 +03:00
committed by GitHub
parent 92dc27584a
commit ab8f04f827
2 changed files with 180 additions and 179 deletions
+179 -178
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1257,7 +1257,7 @@ impl BeefyDataProvider<H256> for ParasProvider {
.filter_map(|id| Paras::para_head(&id).map(|head| (id.into(), head.0))) .filter_map(|id| Paras::para_head(&id).map(|head| (id.into(), head.0)))
.collect(); .collect();
para_heads.sort(); para_heads.sort();
beefy_merkle_tree::merkle_root::<pallet_beefy_mmr::Pallet<Runtime>, _, _>( beefy_merkle_tree::merkle_root::<<Runtime as pallet_mmr::Config>::Hashing, _>(
para_heads.into_iter().map(|pair| pair.encode()), para_heads.into_iter().map(|pair| pair.encode()),
) )
.into() .into()