parachain-system (#296)

* rename parachain-{upgrade -> system}

* Merge message-broker into parachain-system

* Remove message-broker and clean up

* Update docs

* Test upward messages sending

And also update the relay-sproof-builder so that it allows to set the
relay dispatch queue size for the given parachain.

* Test horizontal message sending

* Remove old inherent definitions
This commit is contained in:
Sergei Shulepov
2021-01-21 15:53:00 +01:00
committed by GitHub
parent 8c6febdd3b
commit b5f6580da1
20 changed files with 1438 additions and 1272 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ sp-transaction-pool = { git = "https://github.com/paritytech/substrate", default
sp-version = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
# Cumulus dependencies
cumulus-parachain-upgrade = { path = "../../parachain-upgrade", default-features = false }
cumulus-parachain-system = { path = "../../parachain-system", default-features = false }
cumulus-primitives = { path = "../../primitives", default-features = false }
cumulus-runtime = { path = "../../runtime", default-features = false }
@@ -44,7 +44,7 @@ substrate-wasm-builder = "3.0.0"
default = [ "std" ]
std = [
"codec/std",
"cumulus-parachain-upgrade/std",
"cumulus-parachain-system/std",
"cumulus-primitives/std",
"cumulus-runtime/std",
"frame-executive/std",
+4 -2
View File
@@ -207,10 +207,12 @@ impl pallet_sudo::Config for Runtime {
type Event = Event;
}
impl cumulus_parachain_upgrade::Config for Runtime {
impl cumulus_parachain_system::Config for Runtime {
type SelfParaId = ParachainId;
type Event = Event;
type OnValidationData = ();
type DownwardMessageHandlers = ();
type HrmpMessageHandlers = ();
}
parameter_types! {
@@ -228,7 +230,7 @@ construct_runtime! {
Balances: pallet_balances::{Module, Call, Storage, Config<T>, Event<T>},
Sudo: pallet_sudo::{Module, Call, Storage, Config<T>, Event<T>},
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage},
ParachainUpgrade: cumulus_parachain_upgrade::{Module, Call, Storage, Inherent, Event},
ParachainSystem: cumulus_parachain_system::{Module, Call, Storage, Inherent, Event},
TransactionPayment: pallet_transaction_payment::{Module, Storage},
}
}