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

Update docs to run Rococo relay chain #1241

Open
nakul1010 opened this issue Jul 23, 2024 · 0 comments
Open

Update docs to run Rococo relay chain #1241

nakul1010 opened this issue Jul 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nakul1010
Copy link
Member

nakul1010 commented Jul 23, 2024

Problem

The current documentation for running the Rococo locally can be found here.

The testnet is down because the relay chain is still using a very old local commit and not the newer Polkadot version. Therefore, we need to use a new relay chain version.

  • Polkadot launch: We used this previously, but the CLI tool is now deprecated.

Solution

To launch using Zombienet, follow these necessary steps:

Step 1: Download and Build Polkadot-SDK

git clone https://github.com/paritytech/polkadot-sdk.git
cd polkadot-sdk

git fetch --all --tags
git checkout tags/polkadot-v1.13.0

cargo build --release

cd ..

Step 2: Download and Build InterBTC

git clone https://github.com/interlay/interbtc.git
cd interbtc

git fetch --all --tags
git checkout tags/1.25.4

cargo build --release

cd ..

Step 3: Download Zombienet

Download Zombienet for the Linux version.

  • Steps to setup Zombienet can be found in this article.
mkdir deployment_config
cd deployment_config

touch config.toml

Step 4: Configure Zombienet

Copy the following into the config.toml file:

[relaychain]  
default_command =  "../polkadot-sdk/target/release/polkadot"  
default_args = [ "-lparachain=debug" ]  
  
chain = "rococo-local"  
  
[[relaychain.nodes]]  
name = "alice"  
validator = true  
  
[[relaychain.nodes]]  
name = "bob"  
validator = true  
rpc_port = 30334
  
[[parachains]]  
id = 2032  
cumulus_based = true  
  
[parachains.collator]  
name = "alice"  
command = "../interbtc/target/release/interbtc-parachain"  
validator = true  
ws_port = 9946

Step 5: Run Zombienet

To run Zombienet, use:

./zombienet-macos -p native spawn config.toml
  • Zombienet configs to hardcode ports, etc.

ToDos/Known Problems

Hardcode Default Chain

  • Currently, it will start the Kintsugi parachain. To start the Interlay testnet chain, update the spec here to chain_spec::testnet_interlay::staging_mainnet_config(false).
  • Need to find a way to specify the chain in the config file. Zombienet itself creates a chainspec.json based on chain = "rococo-local". Adding chain as arguments creates a wrong command.

Docker Images for SDK

  • Instead of compiling the repos, use Docker images instead. Didn't find any other projects using it.

@nakul1010 nakul1010 added the bug Something isn't working label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant