pub fn prepare_message_proof_from_parachain<R, PI, MI>(
params: MessageProofParams<LaneIdOf<R, MI>>,
message_generator: impl Fn(usize) -> MessagePayload,
) -> (FromBridgedChainMessagesProof<HashOf<BridgedChainOf<R, MI>>, LaneIdOf<R, MI>>, Weight)where
R: Config<PI> + Config<MI>,
PI: 'static,
MI: 'static,
BridgedChainOf<R, MI>: Chain<Hash = ParaHash> + Parachain,
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 parachain finality. For GRANDPA chains, please use the
prepare_message_proof_from_grandpa_chain
function.