mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 20:31:13 +00:00
Add mmr_root() to pallet-mmr API to expose root from state (companion for substrate#11183) (#5276)
* Add mmr_root() to pallet-mmr API to expose root from state
* use the right MmrApi primitives
* bridges: use correct mmr primitives
* rococo: beefy-mmr deposit mmr root digest
* fix lockfile
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -40,7 +40,6 @@ use frame_support::{
|
||||
traits::{Everything, KeyOwnerProofSystem},
|
||||
};
|
||||
use pallet_grandpa::{fg_primitives, AuthorityId as GrandpaId};
|
||||
use pallet_mmr_primitives as mmr;
|
||||
use pallet_session::historical as session_historical;
|
||||
use pallet_transaction_payment::{FeeDetails, RuntimeDispatchInfo};
|
||||
use polkadot_runtime_parachains::reward_points::RewardValidatorsWithEraPoints;
|
||||
@@ -57,6 +56,7 @@ use runtime_common::{
|
||||
SlowAdjustingFeeUpdate,
|
||||
};
|
||||
use sp_core::OpaqueMetadata;
|
||||
use sp_mmr_primitives as mmr;
|
||||
use sp_runtime::{
|
||||
create_runtime_str,
|
||||
curve::PiecewiseLinear,
|
||||
@@ -930,6 +930,12 @@ sp_api::impl_runtime_apis! {
|
||||
// dummy implementation due to lack of MMR pallet.
|
||||
Err(mmr::Error::Verify)
|
||||
}
|
||||
|
||||
fn mmr_root() -> Result<Hash, mmr::Error> {
|
||||
// dummy implementation due to lack of MMR pallet.
|
||||
Err(mmr::Error::Verify)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
impl fg_primitives::GrandpaApi<Block> for Runtime {
|
||||
|
||||
Reference in New Issue
Block a user