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

Parachain didn't produce blocks #1801

Closed
shanithkk opened this issue Dec 4, 2023 · 5 comments · Fixed by #1808
Closed

Parachain didn't produce blocks #1801

shanithkk opened this issue Dec 4, 2023 · 5 comments · Fixed by #1808
Assignees
Labels
bug Something isn't working chore No feature changes

Comments

@shanithkk
Copy link

Discription

after running the parachain locally, parachain didn't create any new blocks.

Steps to reproduce

  1. make start-relay
  2. make register
  3. make start-frequency
  4. make onboard

Expected Outcome:
parachain produce new blocks

Screenshot
Screenshot 2023-12-05 at 1 40 41 AM

@mattheworris mattheworris self-assigned this Dec 4, 2023
@mattheworris
Copy link
Collaborator

@shanithkk Thanks for taking the time to write an issue.

The rococo-local.json file is out of date. A fix to update the json file will be coming shortly.

In the meantime, you can update it locally by running make specs-rococo-local.

Be sure to clear your chain databases before restarting your network (rm -Rf /tmp/frequency should take care of the parachain, the relay chain containers should not have persistent storage).

@mattheworris mattheworris added bug Something isn't working chore No feature changes labels Dec 5, 2023
@shanithkk
Copy link
Author

Hi @mattheworris, i was build a spec using parity/polkadot:latest image, im not able to fix this issue. but using make specs-rococo-local its worked.
i ran the frequency chain by using docker getting error like [Relaychain] Bootnode with peer id 12D3KooWDLpRT9KFo6pKdkmdQQt599tmqVYpoeiHemY32Gf4RUpp is on a different chain (our genesis: 0x0307…0458 theirs: 0xfdd2…5ec3)

@mattheworris
Copy link
Collaborator

mattheworris commented Dec 6, 2023

parity/polkadot:latest may not be compatible with earlier versions. Parity has released a few updates recently and some may contain breaking changes.

Please make sure to remove any persistent storage that may be storing the chain state when starting your nodes. rm -Rf /tmp/frequency will remove the storage for the parachain node started by make start-frequency and the make start-relay containers should not have any persistent storage.

Ideally, the specs should be generated with the same version of polkadot as the relay chain nodes.
Currently, the code is slightly mismatched, but after running make specs-rococo-local should work without any code changes.

However, you can make sure all the versions of polkadot are the same by editing the following files. (Again, this will be corrected in an upcoming PR).

make specs-rococo-local is coded to use polkadot v1.0.0. You can update the polkadot version in scripts/generate_relay_specs.sh.

make start-relay will use polkadot v1.1.0. You can update the polkadot version in docker/docker-compose.yml

You can view the draft PR #1808

@mattheworris mattheworris linked a pull request Dec 6, 2023 that will close this issue
6 tasks
@shanithkk
Copy link
Author

Thank you @mattheworris , also can you provide how to run using docker image

Currently i'm running two relay chains polkadot:v1.1.0

Steps to reproduce

  1. Start two relay relay chain

  2. aquired paraId 2000

  3. Run frequency parachain with command
    /frequency/target/release/frequency --chain=frequency-rococo-local --rpc-port=9944 --rpc-external --rpc-cors=all --prometheus-external --name=alice --collator --rpc-methods=unsafe --force-authoring --execution=wasm -- --chain=/app/polkadot.json --execution=wasm

  4. register manually the genisis wasm and genisis state

Frequency logs

Screenshot 2023-12-07 at 6 07 35 PM

@mattheworris
Copy link
Collaborator

make start-relay uses docker compose to run the polkadot relay nodes in containers. It requires that your system have docker running. For example, on macOS, Docker Desktop must be running.

mattheworris added a commit that referenced this issue Dec 26, 2023
# Goal
Issue #1801 reported that the local parachain wasn't making blocks when
following the directions for setting up a local relay chain.
`rococo-local.json`, the chain spec file used to setup the local relay
chain development environment was out of date with the recent versions
of the polkadot-sdk and needed to be updated.

Closes #1801 

# Checklist
- [ ] Chain spec updated
- [ ] Custom RPC OR Runtime API added/changed? Updated js/api-augment.
- [ ] Design doc(s) updated
- [ ] Tests added
- [ ] Benchmarks added
- [ ] Weights updated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working chore No feature changes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants