Module messages_relay::message_lane_loop
source · Expand description
Message delivery loop. Designed to work with messages pallet.
Single relay instance delivers messages of single lane in single direction. To serve two-way lane, you would need two instances of relay. To serve N two-way lanes, you would need N*2 instances of relay.
Please keep in mind that the best header in this file is actually best finalized header. I.e. when talking about headers in lane context, we only care about finalized headers.
Structs§
- State of the client.
- Both clients state.
- Message delivery race parameters.
- Message details.
- Message delivery race proof parameters.
- Artifacts of submitting nonces proof.
- Message lane loop configuration params.
Traits§
- Batch transaction that already submit some headers and needs to be extended with messages/delivery proof before sending.
- Source client trait.
- Target client trait.
Functions§
- Return prefix that will be used by default to expose Prometheus metrics of the finality proofs sync loop.
- Run message lane service loop.
Type Aliases§
- Messages details map.
- State of source client in one-way message lane.
- State of target client in one-way message lane.