From f44edb62c448d9d5ef1ad072271a49e9aa340073 Mon Sep 17 00:00:00 2001 From: Robert Hambrock Date: Tue, 21 Nov 2023 20:46:07 +0100 Subject: [PATCH] test-runtime: impl MmrApi --- polkadot/runtime/test-runtime/src/lib.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/polkadot/runtime/test-runtime/src/lib.rs b/polkadot/runtime/test-runtime/src/lib.rs index bec34ef4e4db7..7001826e03bf4 100644 --- a/polkadot/runtime/test-runtime/src/lib.rs +++ b/polkadot/runtime/test-runtime/src/lib.rs @@ -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 + ) -> Result, mmr::Error> { + Err(mmr::Error::PalletNotIncluded) + } + + fn verify_ancestry_proof( + _ancestry_proof: mmr::AncestryProof, + ) -> Result<(), mmr::Error> { + Err(mmr::Error::PalletNotIncluded) + } } impl fg_primitives::GrandpaApi for Runtime {