Function bridge_runtime_common::messages_benchmarking::prepare_message_proof_from_grandpa_chain
source · pub fn prepare_message_proof_from_grandpa_chain<R, FI, MI>(
params: MessageProofParams<LaneIdOf<R, MI>>,
message_generator: impl Fn(usize) -> MessagePayload,
) -> (FromBridgedChainMessagesProof<HashOf<BridgedChainOf<R, MI>>, LaneIdOf<R, MI>>, Weight)where
R: Config<FI, BridgedChain = BridgedChainOf<R, MI>> + Config<MI, BridgedHeaderChain = Pallet<R, FI>>,
FI: 'static,
MI: 'static,
Expand description
Prepare proof of messages for the receive_messages_proof
call.
In addition to returning valid messages proof, environment is prepared to verify this message proof.
This method is intended to be used when benchmarking pallet, linked to the chain that
uses GRANDPA finality. For parachains, please use the prepare_message_proof_from_parachain
function.