mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 11:41:02 +00:00
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:
Generated
+179
-178
File diff suppressed because it is too large
Load Diff
@@ -1257,7 +1257,7 @@ impl BeefyDataProvider<H256> for ParasProvider {
|
||||
.filter_map(|id| Paras::para_head(&id).map(|head| (id.into(), head.0)))
|
||||
.collect();
|
||||
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()),
|
||||
)
|
||||
.into()
|
||||
|
||||
Reference in New Issue
Block a user