Module pallet_xcm_bridge::congestion
source · Expand description
The module contains utilities for handling congestion between the bridge hub and routers.
Structs§
- Adapter that ties together the [
DispatchBlob
] trait with theDispatchChannelStatusProvider
trait. The idea is that [DispatchBlob
] triggers message dispatch/delivery on the receiver side, whileDispatchChannelStatusProvider
provides a status check to ensure the dispatch channel is active (not congested). - Limits for handling congestion.
- Switches the implementation of
LocalXcmChannelManager
based on thelocal_origin
. - Manages the local XCM channels by sending XCM messages with the
update_bridge_status
extrinsic to thelocal_origin
. TheXcmProvider
type converts the encoded call toXCM
, which is then sent byXcmSender
to thelocal_origin
. This is useful, for example, when a router with [xcm::prelude::ExportMessage
] is deployed on a different chain, and we want to control congestion by sending XCMs.