Skip to content

Deduplicate owner calls for some pallets#1477

Merged
serban300 merged 1 commit into
paritytech:masterfrom
serban300:parachains_operating_mode_and_owner
Jun 27, 2022
Merged

Deduplicate owner calls for some pallets#1477
serban300 merged 1 commit into
paritytech:masterfrom
serban300:parachains_operating_mode_and_owner

Conversation

@serban300
Copy link
Copy Markdown
Collaborator

Some simplifications that should make it easier to implement #1434

Avoid duplicate function definitions for:

  • ensure_owner_or_root()
  • ensure_not_halted()
  • set_owner()
  • set_operating_mode() / set_operational()

@serban300 serban300 self-assigned this Jun 27, 2022
@serban300 serban300 force-pushed the parachains_operating_mode_and_owner branch from 1ec48e4 to 034e100 Compare June 27, 2022 09:36
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.

Seems super-cool, thank you! I've left some comments - feel free to merge whenever you consider PR ready

Comment thread primitives/runtime/Cargo.toml Outdated
Comment thread primitives/runtime/src/lib.rs Outdated
Comment thread primitives/runtime/src/lib.rs
Comment thread primitives/runtime/src/lib.rs
Comment thread modules/grandpa/src/lib.rs Outdated
Avoid duplicate function definitions for:
- ensure_owner_or_root()
- ensure_not_halted()
- set_owner()
- set_operating_mode() / set_operational()

Signed-off-by: Serban Iorga <serban@parity.io>
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.

Perfect, thank you! Hit merge once it is green ;)

@serban300
Copy link
Copy Markdown
Collaborator Author

Seems super-cool, thank you! I've left some comments - feel free to merge whenever you consider PR ready

@svyatonik Thank you for the review ! I addressed the comments and opened a new issue for changing IsHalted to an enum. Could you check again if everything seems ok please ? Just to make sure if I can merge the PR. Thanks !

@serban300
Copy link
Copy Markdown
Collaborator Author

Perfect, thank you! Hit merge once it is green ;)

Ah awesome. Thanks !

@serban300 serban300 merged commit 0adb4f9 into paritytech:master Jun 27, 2022
svyatonik pushed a commit that referenced this pull request Jul 17, 2023
* [do not merge] ci: try nextest

* uncomment jobs
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.

2 participants