Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get rid off parachain-info #2116

Open
bkchr opened this issue Nov 1, 2023 · 8 comments
Open

Get rid off parachain-info #2116

bkchr opened this issue Nov 1, 2023 · 8 comments
Labels
I4-refactor Code needs refactoring.

Comments

@bkchr
Copy link
Member

bkchr commented Nov 1, 2023

I added this pallet back in the old days to have an easy way to configure the ParaId. However, nowadays we don't support to change the ParaId via the CLI, but the crate stayed and is used by everyone... The only thing the crate is doing is to provide a Get<ParaId> which can also just be created by parameter_types! (at compile time).

We should start removing the crate from all of our runtimes and explain better for what the pallet is/should be used for. Then we should tag it as deprecated and remove it at some point. If someone wants to continue using it, they can just copy it or may switch to the new parameter pallet (which does the same job, but in a generic way).

@bkchr bkchr added the I4-refactor Code needs refactoring. label Nov 1, 2023
@philoniare
Copy link
Contributor

@bkchr can you assign this to me?

@xlc
Copy link
Contributor

xlc commented Feb 29, 2024

parachain-info is the only way to fetch parachain id from a runtime. we cannot remove it without a replacement mechanism

@xlc
Copy link
Contributor

xlc commented Feb 29, 2024

The replacement mechanism #3517

We need a proper deprecation process for this including provide migrations to remove the storage and an entry in release note

@philoniare
Copy link
Contributor

@xlc okay got it, I'll wait for #3517 to be merged then

github-merge-queue bot pushed a commit that referenced this issue Mar 1, 2024
expose para id via metadata

#2116 is blocked by this
skunert pushed a commit to skunert/polkadot-sdk that referenced this issue Mar 4, 2024
expose para id via metadata

paritytech#2116 is blocked by this
@philoniare
Copy link
Contributor

@xlc looks like #3517 got merged. Would really appreciate some pointers on the migrations that need to be done after removing parachain-info from cumulus pallets. Is there any similar migration performed before? Would I need to add migrations to delete the paraId on all of the runtimes in cumulus/parachains/runtimes like this?

frame_support::storage::unhashed::kill(
        &<ParachainInfo as PalletInfoAccess>::name(),
        &[module.as_bytes(), b"ParachainId"],
    );

@ggwpez
Copy link
Member

ggwpez commented Mar 5, 2024

Pallets can be deleted with RemovePallet, since its just one value that should be fine.

@philoniare
Copy link
Contributor

Pallets can be deleted with RemovePallet, since its just one value that should be fine.

Ah great, thanks for pointing it out 🙏

@philoniare philoniare removed their assignment Mar 12, 2024
@philoniare
Copy link
Contributor

unassigning myself as this seems like a trivial refactor for beginners

serban300 added a commit to serban300/polkadot-sdk that referenced this issue Mar 26, 2024
* Propagate message receival confirmation errors

* spellcheck
serban300 added a commit to serban300/polkadot-sdk that referenced this issue Mar 27, 2024
* Propagate message receival confirmation errors

* spellcheck
serban300 added a commit to serban300/polkadot-sdk that referenced this issue Apr 8, 2024
* Propagate message receival confirmation errors

* spellcheck
serban300 added a commit to serban300/polkadot-sdk that referenced this issue Apr 8, 2024
* Propagate message receival confirmation errors

* spellcheck
serban300 added a commit to serban300/polkadot-sdk that referenced this issue Apr 8, 2024
* Propagate message receival confirmation errors

* spellcheck
serban300 added a commit to serban300/polkadot-sdk that referenced this issue Apr 8, 2024
* Propagate message receival confirmation errors

* spellcheck
serban300 added a commit to serban300/polkadot-sdk that referenced this issue Apr 8, 2024
* Propagate message receival confirmation errors

* spellcheck
serban300 added a commit to serban300/polkadot-sdk that referenced this issue Apr 9, 2024
* Propagate message receival confirmation errors

* spellcheck
serban300 added a commit to serban300/polkadot-sdk that referenced this issue Apr 9, 2024
* Propagate message receival confirmation errors

* spellcheck
serban300 added a commit to serban300/polkadot-sdk that referenced this issue Apr 9, 2024
* Propagate message receival confirmation errors

* spellcheck
serban300 added a commit to serban300/polkadot-sdk that referenced this issue Apr 9, 2024
* Propagate message receival confirmation errors

* spellcheck
serban300 added a commit to serban300/polkadot-sdk that referenced this issue Apr 9, 2024
* Propagate message receival confirmation errors

* spellcheck
serban300 added a commit to serban300/polkadot-sdk that referenced this issue Apr 9, 2024
* Propagate message receival confirmation errors

* spellcheck
serban300 added a commit to serban300/polkadot-sdk that referenced this issue Apr 10, 2024
* Propagate message receival confirmation errors

* spellcheck
serban300 added a commit to serban300/polkadot-sdk that referenced this issue Apr 10, 2024
* Propagate message receival confirmation errors

* spellcheck
bkchr pushed a commit that referenced this issue Apr 10, 2024
* Propagate message receival confirmation errors

* spellcheck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I4-refactor Code needs refactoring.
Projects
Status: Backlog
Development

No branches or pull requests

4 participants