This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Implementer's guide: downward messages and HRMP, take 2 #1503
Merged
Merged
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
c90fdf4
First stab at downward messages.
pepyakin d1ab1fb
Add some structure to the router.
pepyakin 69fe295
Update `ValidationOutputs`
pepyakin ceaa096
Add `processed_downward_messages` to `ValidationOutputs`.
pepyakin e952a01
s/AccountId/ParaId
pepyakin 778cc2b
DownwardMessage::ParachainSpecfic
pepyakin bdb97af
s/ensure_horizontal_messages_fits/ensure_horizontal_messages_fit
pepyakin 921ca3b
Clarify that Router called for each candidate
pepyakin 3fff854
Update the preamble for Router.
pepyakin 8072356
Rewrite the relay-chain extrinsic routines
pepyakin a622f77
Update gloassary
pepyakin 0309bc5
Add DMP to the glossary
pepyakin 1c75b51
If the queue is empty, `processed_downward_messages` can be 0
pepyakin c1f8482
Merge remote-tracking branch 'origin/master' into ser-ch-based-hrmp-v…
pepyakin d781330
WIP
pepyakin d62803e
Add condemned list
pepyakin 5d09dd8
Pivot to message-storing channel based HRMP
pepyakin e5f642a
Finished draft
pepyakin b1e1b28
Tidy up
pepyakin 02ae124
Remove a duplicate glossary entry
pepyakin 5111966
Fix typo
pepyakin c94ba1d
Fix wording to emphasize that the channel is unidirectional
pepyakin bf7eb0a
Proper decrement `HrmpOpenChannelRequestCount`
pepyakin 44f9338
Add a comment for `HrmpOpenChannelRequestCount`.
pepyakin ea1ad39
Remove old configuration values.
pepyakin 012b839
Be more specific about the para{chain,thread} hrmp chan limits.
pepyakin 2edf4c9
Fix indentation so the lists are rendendered properly
pepyakin 50742fd
"to answer **the**" question instead of "a"
pepyakin 09a0c4b
Add a missing call to `check_processed_downward_messages`
pepyakin 7d8abd6
Clean more stuff during offboarding
pepyakin 3f3f051
Fix typo
pepyakin defd96b
Fix typo for the config
pepyakin 6faf068
Add a call to `prune_dmq`
pepyakin ca70234
Add explicit invariants for ingress/egress indexes
pepyakin 017885e
Add comments for the sender/reciever deposit config fields
pepyakin 439b02e
Document various fields and structs in Router module
pepyakin 4285e51
More docs
pepyakin c1b3e0a
Missing docs in Candidate.md
pepyakin 4ea0012
Tabs to spaces in router.md
pepyakin 065f047
Apply Rob's suggestion
pepyakin 0da3cfa
Add the hrmp_ prefix to the router messages
pepyakin 0de4110
Those are entry points
pepyakin 360c518
Use SessionIndex type for the `age` field
pepyakin 3d6195d
Use a struct to represent `HrmpChannelId`
pepyakin 7bd6316
Merge remote-tracking branch 'origin/master' into ser-ch-based-hrmp
pepyakin ce6e8de
Put only MQCs into the LocalValidationData
pepyakin eb97502
Close request can be initiated by the runtime directly
pepyakin 5c1f312
Close request can be initiated by the runtime directly
pepyakin e18b84a
tabs/spaces
pepyakin 1bcfe70
Maintain the list of the outgoing paras in Router
pepyakin 6d42e9b
Update roadmap/implementers-guide/src/runtime/inclusion.md
pepyakin b1b0fd9
fix typo
pepyakin c22c5d2
Remove an unnecessary pair of code quotes
pepyakin ef9dc1e
Merge branch 'ser-ch-based-hrmp' of github.com:paritytech/polkadot in…
pepyakin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Close request can be initiated by the runtime directly
- Loading branch information
commit 5c1f31273610934d2288e0d78f14d31a71c77a49
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
what exactly happens here? i could imagine a case where both
senderandrecipientinitiate at the same time & race.could it even count as a confirmed close?
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.
alternate behavior would be to ignore, and for paras to confirm close requests even when, from their perspective, they have already initiated a close.
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.
either way, would be nice to specify what happens here and what the corner cases are.
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.
There is no notion of close confirmation in this spec, since we decided to go ahead with unilateral closing with dropping messages atm to move things forward (Right?)
So there is no difference apart the value of
initiatorwhich I guess doesn't make any difference in the current spec and could be safely removed. In other words, if the race happens, even though the lost party's message fails to dispatch, the result is for all practical reasons is the same.