mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-22 03:15:42 +00:00
InboundLaneApi::latest_confirmed_nonce (#429)
* InboundLaneApi::latest_confirmed_nonce * Fix wording and typo Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>
This commit is contained in:
committed by
Bastian Köcher
parent
a37c1762dc
commit
5accb2b339
@@ -66,10 +66,16 @@ pub trait Trait<I = DefaultInstance>: frame_system::Trait {
|
|||||||
/// confirmed. The reason is that if you want to use lane, you should be ready to pay
|
/// confirmed. The reason is that if you want to use lane, you should be ready to pay
|
||||||
/// for it.
|
/// for it.
|
||||||
type MaxMessagesToPruneAtOnce: Get<MessageNonce>;
|
type MaxMessagesToPruneAtOnce: Get<MessageNonce>;
|
||||||
/// Maximal number of messages in the 'unconfirmed' state at inbound lane. Unconfirmed
|
/// Maximal number of "messages" (see note below) in the 'unconfirmed' state at inbound lane.
|
||||||
/// message at inbound lane is the message that has been: sent, delivered and dispatched.
|
/// Unconfirmed message at inbound lane is the message that has been: sent, delivered and
|
||||||
/// Its delivery confirmation is still pending. This limit is introduced to bound maximal
|
/// dispatched. Its delivery confirmation is still pending. This limit is introduced to bound
|
||||||
/// number of relayers-ids in the inbound lane state.
|
/// maximal number of relayers-ids in the inbound lane state.
|
||||||
|
///
|
||||||
|
/// "Message" in this context does not necessarily mean an individual message, but instead
|
||||||
|
/// continuous range of individual messages, that are delivered by single relayer. So if relayer#1
|
||||||
|
/// has submitted delivery transaction#1 with individual messages [1; 2] and then delivery
|
||||||
|
/// transaction#2 with individual messages [3; 4], this would be treated as single "Message" and
|
||||||
|
/// would occupy single unit of `MaxUnconfirmedMessagesAtInboundLane` limit.
|
||||||
type MaxUnconfirmedMessagesAtInboundLane: Get<MessageNonce>;
|
type MaxUnconfirmedMessagesAtInboundLane: Get<MessageNonce>;
|
||||||
|
|
||||||
/// Payload type of outbound messages. This payload is dispatched on the bridged chain.
|
/// Payload type of outbound messages. This payload is dispatched on the bridged chain.
|
||||||
|
|||||||
@@ -136,5 +136,7 @@ decl_runtime_apis! {
|
|||||||
pub trait InboundLaneApi {
|
pub trait InboundLaneApi {
|
||||||
/// Returns nonce of the latest message, received by given lane.
|
/// Returns nonce of the latest message, received by given lane.
|
||||||
fn latest_received_nonce(lane: LaneId) -> MessageNonce;
|
fn latest_received_nonce(lane: LaneId) -> MessageNonce;
|
||||||
|
/// Nonce of latest message that has been confirmed to the bridged chain.
|
||||||
|
fn latest_confirmed_nonce(lane: LaneId) -> MessageNonce;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user