Skip to content

Instantly share code, notes, and snippets.

@lsaether
Last active September 26, 2019 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lsaether/9001ffaa03a0d75aac35ff246291d959 to your computer and use it in GitHub Desktop.
Save lsaether/9001ffaa03a0d75aac35ff246291d959 to your computer and use it in GitHub Desktop.
Validator Migration from CC1 to CC2

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment