Limit size of message delivery transaction (#575)

* limit messages size in delivery transaction

* docs
This commit is contained in:
Svyatoslav Nikolsky
2020-12-15 13:46:14 +03:00
committed by Bastian Köcher
parent d47658c92e
commit 8a5b51a944
12 changed files with 170 additions and 30 deletions
+2 -2
View File
@@ -122,7 +122,7 @@ sp_api::decl_runtime_apis! {
/// This API is implemented by runtimes that are sending messages to Kusama chain, not the
/// Kusama runtime itself.
pub trait ToKusamaOutboundLaneApi {
/// Returns dispatch weight of all messages in given inclusive range.
/// Returns total dispatch weight and encoded payload size of all messages in given inclusive range.
///
/// If some (or all) messages are missing from the storage, they'll also will
/// be missing from the resulting vector. The vector is ordered by the nonce.
@@ -130,7 +130,7 @@ sp_api::decl_runtime_apis! {
lane: LaneId,
begin: MessageNonce,
end: MessageNonce,
) -> Vec<(MessageNonce, Weight)>;
) -> Vec<(MessageNonce, Weight, u32)>;
/// Returns nonce of the latest message, received by bridged chain.
fn latest_received_nonce(lane: LaneId) -> MessageNonce;
/// Returns nonce of the latest message, generated by given lane.