Kusama CC2 is tagged on the paritytech/polkadot repository as v0.6.0.
- Pull the latest code from GitHub.
If you have previously built an old version you can run the commands below:
# At the root of polkadot repository
$ pwd
# For example: /home/user/polkadot
$ git fetch
$ git pull
$ git pull --tags -f
$ git checkout v0.6.0
# Ensure you are on commit hash 5020fa4892865f334b7532fe4c99c98743267af2
$ cargo build --release
- Start node to create the default datadir.
$ ./target/release/polkadot
- Stop node and copy previous keystore to new chain id.
The default keystore location for linux is $HOME/.local/share/polkadot/chains
$ cp -r $HOME/.local/share/polkadot/chains/ksma/keystore $HOME/.local/share/polkadot/chains/ksmcc2/keystore
- Restart your node.
$ ./target/release/polkadot
- Check telemetry for your node's name.