-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Cleaning "common good" vs "system" #7488
base: master
Are you sure you want to change the base?
Conversation
Superusers should be explicitly listed IMO. Would not use
I am OK with using |
cool, thank you, so I am going to change that,
|
For So I think either is OK, but perhaps @KiChjang can confirm, or we just keep it explicit for now. |
/// System parachain ids are `< 2000` | ||
const SYSTEM_INDEX_END: u32 = 1999; | ||
|
||
const USER_INDEX_START: u32 = 2000; | ||
const PUBLIC_INDEX_START: u32 = 2000; |
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.
Since both USER_INDEX_START
and PUBLIC_INDEX_START
are 2000
, is there an actual difference between the two?
So the only problem that we may have in doing |
@KiChjang |
Yeah, it's just a matter of merging master depending on whether your PR or mine lands first. |
bot rebase |
Rebased |
Everything with
paraId<2000
should be considered as system parachain.(Here where also introduced
system_parachain
constants: #7005)There are 3 possible places that are effected by change
para<1000
->para<2000
.So the main question is where to use "explicit paraIds" or relaxed
para<2000
?How to setup:
Polkadot:
AllowExplicitUnpaidExecutionFrom
AllowExplicitUnpaidExecutionFrom<CollectivesOrFellows>
AllowExplicitUnpaidExecutionFrom<SystemParachainsOrFellows>
paraId<2000
ChildSystemParachainAsSuperuser
LocalOriginConverter
ChildSystemParachainAsSuperuser<SystemParachains>
paraId<2000
TrustedTeleporters
DotForSystemParachain
based onparaId<2000
e.g. https://github.com/paritytech/cumulus/pull/2842/files#diff-53073f451405f5fdf3a02c595270a9fce3b0d5951122e0ad26f482a073019ad1R68-R79Kusama:
AllowExplicitUnpaidExecutionFrom
AllowExplicitUnpaidExecutionFrom<IsChildSystemParachain<ParaId>
(effected bychange in PRparaId<1000
->paraId<2000
)AllowExplicitUnpaidExecutionFrom<SystemParachains>
-> explicitly say which one (using constants)ChildSystemParachainAsSuperuser
ChildSystemParachainAsSuperuser<ParaId>
(effected by change in PRparaId<1000
->paraId<2000
)ChildSystemParachainAsSuperuser<SystemParachains>
-> explicitly say which one (using constants)TrustedTeleporters
KsmForSystemParachain
based onparaId<2000
e.g. https://github.com/paritytech/cumulus/pull/2842/files#diff-53073f451405f5fdf3a02c595270a9fce3b0d5951122e0ad26f482a073019ad1R68-R79Westend/Rococo:
the same as Kusama or relaxed more
SiblingSystemParachainAsSuperuser
- never used in Cumulus (effected by change in PRparaId<1000
->paraId<2000
)NativeAssetFromSiblingSystemParachain
to xcm-builder from here