limit number of pending messages at outbound lane (#715)

This commit is contained in:
Svyatoslav Nikolsky
2021-02-11 10:36:14 +03:00
committed by Bastian Köcher
parent 2f457775bb
commit ca91d34059
7 changed files with 148 additions and 12 deletions
@@ -167,6 +167,16 @@ impl messages::ChainWithMessageLanes for Rialto {
type MessageLaneInstance = crate::WithMillauMessageLaneInstance;
}
impl messages::ThisChainWithMessageLanes for Rialto {
fn is_outbound_lane_enabled(lane: &LaneId) -> bool {
*lane == LaneId::default()
}
fn maximal_pending_messages_at_outbound_lane() -> MessageNonce {
MessageNonce::MAX
}
}
/// Millau chain from message lane point of view.
#[derive(RuntimeDebug, Clone, Copy)]
pub struct Millau;