Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Sudo wrapper for paras #1517

Merged
merged 3 commits into from
Aug 3, 2020
Merged

Sudo wrapper for paras #1517

merged 3 commits into from
Aug 3, 2020

Conversation

montekki
Copy link
Contributor

@montekki montekki commented Aug 1, 2020

A sudo wrapper for paras was forgotten. Should constant weights be here and return values from the functions be ignored? If not how do we go from Weight to DispatchResult?

@montekki montekki added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. labels Aug 1, 2020
@montekki montekki requested a review from rphmeier August 1, 2020 13:23

/// Schedule a para to be initialized at the start of the next session.
#[weight = (1_000, DispatchClass::Operational)]
pub fn sudo_schedule_para_initialize(
Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer this be in a separate module, because this is a low-level module that we shouldn't need to expose directly

Copy link
Contributor

Choose a reason for hiding this comment

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

It should be in the common crate or a separate crate, though, not the parachains crate. my rationale is that the parachains-core layer should be agnostic as to how and when paras get registered, only that they do.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved to common

Copy link
Contributor

@rphmeier rphmeier left a comment

Choose a reason for hiding this comment

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

great, thanks!

@rphmeier rphmeier merged commit a2b008d into paritytech:master Aug 3, 2020
ordian added a commit that referenced this pull request Aug 5, 2020
* master:
  Unalias Substrate Imports (#1530)
  Rewrite client handling (#1531)
  Integrate ChainApi with all messages (#1533)
  Add Rococo test network (#1363)
  Fix a typo parathreads -> parachains (#1529)
  Cleanup upcoming paras (#1527)
  Sudo wrapper for paras (#1517)
  Implementer's guide: notes on contextual execution (#1525)
  Companion for substrate/6782 (#1523)
  Sort out validation errors (#1516)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants