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

Comments

Registrar v1 follow-ups#1786

Merged
3 commits merged intomasterfrom
ser-registrar-follow-ups
Oct 6, 2020
Merged

Registrar v1 follow-ups#1786
3 commits merged intomasterfrom
ser-registrar-follow-ups

Conversation

@pepyakin
Copy link
Contributor

@pepyakin pepyakin commented Oct 5, 2020

A follow-up to recently merged #1559

This PR comprised of two changes:

  1. Do not add alias for polkadot-runtime-parachains::Origin to polkadot-runtime-parachains::paras::Origin.
  2. Call the schedule_para_cleanup for the router module as well.

Re: origin. TBH, I am not sure why it was made this way, but I don't see a reason why we should not use the original declaration directly. Otherwise, it spawns questions like: why do we add this origin into the mock but not into the runtime, are there any edge-cases if you register the essentially the same origin twice but using different paths, and so on.

I actually made it this way first in #1679, but failed to land the mock part in #1749.

Re: schedule_para_cleanup. Right now, you are expected to call all schedule_para_cleanup. I don't remember the reasons why we decided to go with additional function instead of introducing a single entrypoint (i.e. call the router module from paras) or introducing another top-level entrypoint, but this PR might be a sign that we might need to reconsider this. Although I don't think it's critical though. cc @rphmeier

This PR was split from #1679

@pepyakin pepyakin added the A0-please_review Pull request needs code review. label Oct 5, 2020
@pepyakin pepyakin added this to the Grosvenor milestone Oct 5, 2020
@pepyakin pepyakin requested a review from montekki October 5, 2020 14:35
@pepyakin pepyakin added 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 Oct 5, 2020
@pepyakin
Copy link
Contributor Author

pepyakin commented Oct 6, 2020

bot merge

@ghost
Copy link

ghost commented Oct 6, 2020

Trying merge.

@ghost ghost merged commit b56f2b3 into master Oct 6, 2020
@ghost ghost deleted the ser-registrar-follow-ups branch October 6, 2020 11:07
ordian added a commit that referenced this pull request Oct 6, 2020
* master:
  NetworkBridge: validator (authorities) discovery api (#1699)
  Registrar v1 follow-ups (#1786)
  Make collation an optional return (#1787)
  XCM: Land xcm-handler and xcm-executor (#1771)
  v0.8.25 (#1785)
  add two node local net script (#1781)
  Adjust max nominators down to 128 (from 256) (#1782)
  Companion for substrate/pull/7215 (#1768)
  Remove Stale Upgrades (#1780)
  Update Polkadot Weights for Substrate 2.0 (#1761)
This pull request was closed.
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.

4 participants