Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Moving from PoC 1 to PoC 2

Gav Wood edited this page Jul 17, 2018 · 7 revisions

When the change over happens:

  • All PoC-1 era nodes will stop. This is for several reasons: The Wasm heap size was too small, making them unable to process this upgrade transaction. For very recent master or v0.2-devp2p builds, if they're configured to run with a large heap size (--min-heap-pages=1024 --max-heap-pages 1024 or --heap-pages=1024 depending on how old your master branch is), new blocks will be available on the new libp2p network and not on the devp2p network, and there's no nodes that exist on both to shuttle them across.
  • If you're already synced using a recent master build or v0.2-devp2p, then you can probably upgrade. You'll need to run with --min-heap-pages=1024 --max-heap-pages 1024 or --heap-pages=1024 depending on how old your master branch is. Once the changeover happens: You'll need to stop your node, upgrade the database (see below) and then start a new node built from either the v0.2 or master branches.
  • If you want to get started right now, then you can also switch (or start a v0.2/master node) earlier, but your node will stall until the network switches runtime.

Upgrading the Database

There's a manual step in moving from an older build to a new master or v0.2 branch build because the database is stored in a new place. Essentially, you'll need to move the contents of whatever place your node uses to store the database &c. into a subpath chains/poc-1-testnet.

If you're using the defaults on Mac OS, then just run:

mkdir -p /tmp/chains/poc-1-testnet && \
mv ~/Library/Application\ Support/Polkadot/* /tmp/chains/poc-1-testnet && \
mv /tmp/chains ~/Library/Application\ Support/Polkadot/

If you have been using the -d MY_PATH CLI parameter before then you'll want to run:

mkdir -p /tmp/chains/poc-1-testnet && \
mv MY_PATH/* /tmp/chains/poc-1-testnet && \
mv /tmp/chains MY_PATH/
Clone this wiki locally