Skip to content

Add owner calls to the parachains pallet#1486

Merged
serban300 merged 5 commits into
paritytech:masterfrom
serban300:parachains_operating_mode_and_owner
Jun 30, 2022
Merged

Add owner calls to the parachains pallet#1486
serban300 merged 5 commits into
paritytech:masterfrom
serban300:parachains_operating_mode_and_owner

Conversation

@serban300
Copy link
Copy Markdown
Collaborator

Fixes #1434

Signed-off-by: Serban Iorga <serban@parity.io>
@serban300 serban300 self-assigned this Jun 29, 2022
Define macro that generates tests for set_owner() and set_operating_mode()
in order to avoid duplicate code.

Signed-off-by: Serban Iorga <serban@parity.io>
Signed-off-by: Serban Iorga <serban@parity.io>
@serban300 serban300 force-pushed the parachains_operating_mode_and_owner branch from d96a054 to 49cce06 Compare June 29, 2022 14:23
Copy link
Copy Markdown
Contributor

@svyatonik svyatonik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you! A couple of things I'd add:

  1. test in parachains finality pallet to ensure that the submit_parachain_heads call is rejected when the pallet is halted;
  2. an ability to set parachains finality pallet owner and operating mode at genesis.

Feel free to do that in a follow-up PRs though :)

Add unit test in order to check that the submit_parachain_heads() call
returns an error when the pallet is halted.

Signed-off-by: Serban Iorga <serban@parity.io>
Signed-off-by: Serban Iorga <serban@parity.io>
@serban300
Copy link
Copy Markdown
Collaborator Author

serban300 commented Jun 30, 2022

  1. submit_parachain_heads

Thank you for the review and the suggestions ! I addressed both points in this PR but separate commits. Could you take another look please ? Thanks !

Copy link
Copy Markdown
Contributor

@svyatonik svyatonik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you!

@serban300 serban300 merged commit e2e2830 into paritytech:master Jun 30, 2022
svyatonik pushed a commit that referenced this pull request Jul 17, 2023
* Trivial networking changes for Substrate PR paritytech/substrate#11940

* Apply formatting rules

* update lockfile for {"polkadot", "substrate"}

Co-authored-by: parity-processbot <>
svyatonik pushed a commit that referenced this pull request Jul 17, 2023
* changes to read json spec in test binary

* add zombienet tests

* fmt

* use {{COL_IMAGE}} and clean config

* add comment and use relay image from env

* use test-parachain image from pr

* fix warns

* fix warns

* fmt

* typo

* fix ci to use zombienet image

* fix spawn nodes for test

* reorg test

* add within to test

* remove check for full node collators is up

* add tests for pov, mirate solo to para, sync blocks

* bump zombienet image

* add job dep with artifacts

* add sleep for test

* fix after merge

* fmt

* bump zombienet version

* changes from clap

* use base/shared params

* fmt

* debug ci

* add upgrade test

* update js test for debug

* less debug in test

* print assertion

* fix upgrade test

* Collator key only needed if we run as collator

* [Fix] Benchmark build artifact folder creation (#1518)

* Trivial networking changes for Substrate PR #11940 (#1486)

* Trivial networking changes for Substrate PR paritytech/substrate#11940

* Apply formatting rules

* update lockfile for {"polkadot", "substrate"}

Co-authored-by: parity-processbot <>

* bump zombienet version

* update network def for test

* typo

Co-authored-by: Sebastian Kunert <skunert49@gmail.com>
Co-authored-by: Roman Useinov <roman.useinov@gmail.com>
Co-authored-by: Nazar Mokrynskyi <nazar@mokrynskyi.com>
@serban300 serban300 deleted the parachains_operating_mode_and_owner branch September 5, 2023 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add owner calls to the parachains pallet

2 participants