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

[DNM]: Rococo parachain fixes #4600

Closed
wants to merge 3 commits into from

Conversation

skunert
Copy link
Contributor

@skunert skunert commented May 27, 2024

This PR provides fixes for rococo parachains that are halted due to #4559 .

The fixes come in form of:

  1. Per parachain, a chain-spec with a codesubstitute field set to the latest block on that chain
  2. The compiled runtime for overriding on the relay chain

Steps taken:

  • Checked out release-polkadot-v1.12.0 branch at d3bf1a82ac2d369d213e2fc316d9885628c47344
  • created rococo_fixes directory
  • Build all parachains using cargo build --release -p people-rococo-runtime -p contracts-rococo-runtime -p bridge-hub-rococo-runtime -p asset-hub-rococo-runtime -p coretime-rococo-runtime
  • Copy runtimes to rococo_fixes directory
  • Patch chain-specs using modified version of chain-spec-builder

Block numbers for reference:

  • rococo-asset-hub: 4960799
  • coretime-rococo: 1627199
  • rococo-people: 1209599
  • rococo-bridgehub: 3603599
  • contracts-rococo: 5359899

@skunert skunert closed this May 29, 2024
acatangiu pushed a commit to serban300/polkadot-sdk that referenced this pull request Jun 25, 2024
While working on paritytech#4600 I
found that it would be nice if `chain-spec-builder` supported
`codeSubstitutes`. After this PR is merged you can do:

```
chain-spec-builder add-code-substitute chain_spec.json my_runtime.compact.compressed.wasm 1234
```

In addition, the `chain-spec-builder` was silently removing
`relay_chain` and `para_id` fields when used on parachain chain-specs.
This is now fixed by providing a custom chain-spec extension that has
these fields marked as optional.
TarekkMA pushed a commit to moonbeam-foundation/polkadot-sdk that referenced this pull request Aug 2, 2024
While working on paritytech#4600 I
found that it would be nice if `chain-spec-builder` supported
`codeSubstitutes`. After this PR is merged you can do:

```
chain-spec-builder add-code-substitute chain_spec.json my_runtime.compact.compressed.wasm 1234
```

In addition, the `chain-spec-builder` was silently removing
`relay_chain` and `para_id` fields when used on parachain chain-specs.
This is now fixed by providing a custom chain-spec extension that has
these fields marked as optional.
@skunert skunert deleted the skunert/rococo-fixes branch October 1, 2024 11:55
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.

1 participant