mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 02:21:14 +00:00
[Substrate companion] Update beefy-merkle-tree dep to merkle-tree (#6528)
* Update beefy-merkle-tree dep to merkle-tree * update merkle-tree to binary-merkle-tree * update substrate refs --------- Co-authored-by: Adrian Catangiu <adrian@parity.io>
This commit is contained in:
@@ -1282,7 +1282,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::<<Runtime as pallet_mmr::Config>::Hashing, _>(
|
||||
binary_merkle_tree::merkle_root::<<Runtime as pallet_mmr::Config>::Hashing, _>(
|
||||
para_heads.into_iter().map(|pair| pair.encode()),
|
||||
)
|
||||
.into()
|
||||
@@ -1929,7 +1929,7 @@ sp_api::impl_runtime_apis! {
|
||||
}
|
||||
}
|
||||
|
||||
impl beefy_merkle_tree::BeefyMmrApi<Block, Hash> for RuntimeApi {
|
||||
impl pallet_beefy_mmr::BeefyMmrApi<Block, Hash> for RuntimeApi {
|
||||
fn authority_set_proof() -> beefy_primitives::mmr::BeefyAuthoritySet<Hash> {
|
||||
MmrLeaf::authority_set_proof()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user