referrerpolicy=no-referrer-when-downgrade
pub fn receive_messages_proof<T: Config<I>, I: 'static>(
    relayer_id_at_bridged_chain: AccountIdOf<BridgedChainOf<T, I>>,
    proof: Box<FromBridgedChainMessagesProof<HashOf<BridgedChainOf<T, I>>, T::LaneId>>,
    messages_count: u32,
    dispatch_weight: Weight,
)
Expand description

Receive messages proof from bridged chain.

The weight of the call assumes that the transaction always brings outbound lane state update. Because of that, the submitter (relayer) has no benefit of not including this data in the transaction, so reward confirmations lags should be minimal.

The call fails if:

  • the pallet is halted;

  • the call origin is not Signed(_);

  • there are too many messages in the proof;

  • the proof verification procedure returns an error - e.g. because header used to craft proof is not imported by the associated finality pallet;

  • the dispatch_weight argument is not sufficient to dispatch all bundled messages.

The call may succeed, but some messages may not be delivered e.g. if they are not fit into the unrewarded relayers vector.

§Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::receive_messages_proof.