-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Guide: router module #1279
Guide: router module #1279
Changes from 6 commits
1c1cd40
46fa5d1
c431b45
b21b6db
588d309
72d0886
88bf5f5
b29789f
2460e53
8d750f2
861010e
3cf5e8f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,38 @@ | ||||||
| # Router Module | ||||||
|
|
||||||
| The Router module is responsible for storing and dispatching Upwards and Downwards messages from and to parachains respectively. It is intended to later handle the XCMP logic as well. | ||||||
|
|
||||||
| For each enacted block the `enqueue_upward_messages` entry-point is called. All dispatching logic is done by the `dispatch_upward_messages` entry-point. This entry-point is mandatory, in that it must be envoked once within every block. | ||||||
|
|
||||||
| This module does not have the same initialization/finalization concerns as the others, it requires that its entry points be triggered | ||||||
| 1. When candidate is enacted. | ||||||
| 1. Upon new block initialization. | ||||||
|
||||||
|
|
||||||
| ## Storage | ||||||
|
|
||||||
| Storage layout: | ||||||
|
|
||||||
| ```rust,ignore | ||||||
| /// Messages ready to be dispatched onto the relay chain. | ||||||
| /// This is subject to `max_upwards_queue_count` and | ||||||
| ///`watermark_queue_size` from `HostConfiguration`. | ||||||
|
||||||
| ///`watermark_queue_size` from `HostConfiguration`. | |
| /// `watermark_queue_size` from `HostConfiguration`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should give the definition for UpwardMessage somewhere?
montekki marked this conversation as resolved.
Show resolved
Hide resolved
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd recommend either on finalization or after the process_bitfields call in InclusionInherent
Uh oh!
There was an error while loading. Please reload this page.