Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
ab14b90
HRMP: Update the impl guide
pepyakin Oct 28, 2020
c318044
HRMP: Incorporate the channel notifications into the guide
pepyakin Sep 30, 2020
130accb
HRMP: Renaming in the impl guide
pepyakin Oct 28, 2020
e1e4eb0
HRMP: Constrain the maximum number of HRMP messages per candidate
pepyakin Oct 28, 2020
8ef66ec
XCM: Introduce HRMP related message types
pepyakin Sep 30, 2020
196c4a4
HRMP: Data structures and plumbing
pepyakin Sep 14, 2020
71bb7a6
HRMP: Configuration
pepyakin Sep 19, 2020
3dacd77
HRMP: Data layout
pepyakin Oct 6, 2020
6e7979b
HRMP: Acceptance & Enactment
pepyakin Sep 23, 2020
8363874
HRMP: Test base logic
pepyakin Nov 4, 2020
e6a84dc
Update adder collator
pepyakin Nov 2, 2020
19f01ac
HRMP: Runtime API for accessing inbound messages
pepyakin Nov 3, 2020
d61440b
HRMP: Add diagnostic logging in acceptance criteria
pepyakin Nov 3, 2020
71aa0bb
HRMP: Additional tests
pepyakin Nov 4, 2020
f4b03ce
Self-review fixes
pepyakin Nov 5, 2020
0fe6c9a
save test refactorings for the next time
pepyakin Nov 5, 2020
0dce9f8
Missed a return statement.
pepyakin Nov 5, 2020
3555327
a formatting blip
pepyakin Nov 5, 2020
af77075
Add missing logic for appending HRMP digests
pepyakin Nov 5, 2020
1b2368b
Remove the channel contents vectors which became empty
pepyakin Nov 5, 2020
02945d9
Tighten HRMP channel digests invariants.
pepyakin Nov 5, 2020
8448078
Apply suggestions from code review
pepyakin Nov 6, 2020
ee5078f
Remove a note about sorting for channel id
pepyakin Nov 6, 2020
37c1fdd
Add missing rustdocs to the configuration
pepyakin Nov 6, 2020
be1013c
Clarify and update the invariant for HrmpChannelDigests
pepyakin Nov 6, 2020
e546c3c
Make the onboarding invariant less sloppy
pepyakin Nov 6, 2020
9e6e3c2
Make `CandidateCheckContext` use T::BlockNumber for hrmp_watermark
pepyakin Nov 6, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
HRMP: Constrain the maximum number of HRMP messages per candidate
This commit addresses the HRMP part of #1869
  • Loading branch information
pepyakin committed Nov 5, 2020
commit e1e4eb023b0349a64ca550f938b11c3d1ed85461
1 change: 1 addition & 0 deletions roadmap/implementers-guide/src/runtime/router.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ Candidate Acceptance Function:
1. equal to the context's block number
1. or in `HrmpChannelDigests` for `P` an entry with the block number should exist
* `check_outbound_hrmp(sender: ParaId, Vec<OutboundHrmpMessage>)`:
1. Checks that there are at most `config.hrmp_max_message_num_per_candidate` messages.
1. Checks that horizontal messages are sorted by ascending recipient ParaId and there is no two horizontal messages have the same recipient.
1. For each horizontal message `M` with the channel `C` identified by `(sender, M.recipient)` check:
1. exists
Expand Down
6 changes: 6 additions & 0 deletions roadmap/implementers-guide/src/types/runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,16 @@ struct HostConfiguration {
/// The maximum number of inbound HRMP channels a parathread is allowed to accept.
pub hrmp_max_parathread_inbound_channels: u32,
/// The maximum size of a message that could ever be put into an HRMP channel.
///
/// This parameter affects the upper bound of size of `CandidateCommitments`.
pub hrmp_channel_max_message_size: u32,
/// The maximum number of outbound HRMP channels a parachain is allowed to open.
pub hrmp_max_parachain_outbound_channels: u32,
/// The maximum number of outbound HRMP channels a parathread is allowed to open.
pub hrmp_max_parathread_outbound_channels: u32,
/// The maximum number of outbound HRMP messages can be sent by a candidate.
///
/// This parameter affects the upper bound of size of `CandidateCommitments`.
pub hrmp_max_message_num_per_candidate: u32,
}
```