Skip to content

Commit

Permalink
test-runtime: impl MmrApi
Browse files Browse the repository at this point in the history
  • Loading branch information
Lederstrumpf committed Nov 21, 2023
1 parent 8aeef1a commit f44edb6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions polkadot/runtime/test-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1019,6 +1019,19 @@ sp_api::impl_runtime_apis! {
) -> Result<(), mmr::Error> {
Err(mmr::Error::PalletNotIncluded)
}

fn generate_ancestry_proof(
_prev_best_block: BlockNumber,
_best_known_block_number: Option<BlockNumber>
) -> Result<mmr::AncestryProof<Hash>, mmr::Error> {
Err(mmr::Error::PalletNotIncluded)
}

fn verify_ancestry_proof(
_ancestry_proof: mmr::AncestryProof<Hash>,
) -> Result<(), mmr::Error> {
Err(mmr::Error::PalletNotIncluded)
}
}

impl fg_primitives::GrandpaApi<Block> for Runtime {
Expand Down

0 comments on commit f44edb6

Please sign in to comment.