Add add-invulnerables subcommand and Bulletin Polkadot support - #59
Open
karolk91 wants to merge 2 commits into
Open
Add add-invulnerables subcommand and Bulletin Polkadot support#59karolk91 wants to merge 2 commits into
add-invulnerables subcommand and Bulletin Polkadot support#59karolk91 wants to merge 2 commits into
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
New subcommand that builds a StakingAdmin-track proposal adding invulnerable collators to a system chain:
collatorSelection.addInvulnerableper account; multiple accounts are wrapped inutility.forceBatchso one failing addition doesn't revert the rest.polkadotXcm.sendwithTransact { origin_kind: Xcm }: the referendum's StakingAdmin origin arrives on the target as the(AssetHub, Plurality { id: Defense, part: Voice })voice that every system chain'sCollatorSelectionUpdateOriginaccepts. For Asset Hub itself the proposal is the bare call (local StakingAdmin origin).--verify-via <WSS_URL>(optional): connects to the target chain and verifies before writing anything — the node serves the expected para id, every account hassession.nextKeysregistered (theValidatorRegistrationprecondition ofaddInvulnerable), none is already invulnerable, and the resulting set fitsMaxInvulnerables. Uses the dynamic subxt API, so it works even if the checked-in metadata has drifted.submit-referendum --track staking-admincommand, same flow asbuild-upgrade.UpdateOriginisMoreThanHalfCouncil, not StakingAdmin.Bulletin Polkadot support
Network::PolkadotBulletin(para 1010) withmetadata/polkadot_bulletin.scale(v16, fetched fromwss://bulletin-rpc.polkadot.io).build-upgradegains--bulletin, defaulting to the relay version like the other system chains (release assetsbulletin-polkadot_runtime-v*.compact.compressed.wasmare published since v2.2.0).Misc
scripts/update-metadata.shregenerates all metadata snapshots from public endpoints — documents where the.scalefiles come from and makes refreshing them one command.OriginKind::Xcm) against the checked-in metadata, so a metadata refresh that changes them fails loudly.Tested against the live chain: a verification run via
wss://bulletin-rpc.polkadot.iocorrectly reports registered session keys, flags already-invulnerable accounts and missingsession.setKeys, and exits non-zero without writing a proposal.