github ShentuChain/testnet v0.11
v0.11-incentive-testnet

latest releases: v0.13.4, v0.13.3, v0.13.2...
3 years ago

CertiK Incentivized Testnet Upgrade

This is an upgrade release. If you were running a validator or a full node, carefully read the following instructions to upgrade to the v0.11 testnet. If you are new to the CertiK Incentivized Testnet, you can join after we release the genesis file here.

  1. The upgrade height is planned to be 191300, around 14:00 PDT (17:00 EDT and 21:00 UTC) 07-27-2020. EDIT: Due to increased block time, the actual time can be as late as 15:00 PDT (18:00 EDT and 22:00 UTC) 07-27-2020
  2. The old v0.10 chain will halt after that height.

How to Upgrade your node

Caution: make sure you are using the correct certikd binary when following the instructions. from step 3, you should use the new certikd binary.

The genesis.json file is in the assets section below. We recommend you to download it instead of migrating from the old chain and skip steps 2~5.

  1. Download relevant binaries according to your OS.
  2. Halt the running certikd at height 191300.
    1. You can do this by providing a halt flag and restarting the daemon before the actual upgrade with the following command
    2. certikd start --halt-height=191300
  3. Using the new certikd binary, run the following command:
    1. certikd export --for-zero-height --height 191300 > genesis_old.json
  4. Get the new genesis time using the following command:
    1. for linux:
      1. time=$(curl https://certik-shentu-incentivized-vermilionbird.noopsbycertik.com/blocks/191300 | jq -r '.block["header"]["time"]') && TZ=UTC date -d "$time +60 min" +"%Y-%m-%dT%H:%M:%SZ"
      2. note you need jq to be installed beforehand.
    2. for macOS:
      1. curl https://certik-shentu-incentivized-vermilionbird.noopsbycertik.com/blocks/191300 | jq -r '.block["header"]["time"]'|xargs -0 date -v +60M -j -f "%Y-%m-%dT%H:%M:%S" +"%Y-%m-%dT%H:%M:%SZ"
    3. If the remote endpoint does not work, you can retrieve the genesis time directly from your node (you need to have your certikd running for this. run certikd start, execute the command to get the genesis time, and then kill the certikd process) (tested on WSL)
      1. time=$(certikcli query block 191300 --trust-node=true | jq -r '.block["header"]["time"]') && TZ=UTC date -d "$time +60 min" +"%Y-%m-%dT%H:%M:%SZ"
  5. Migrate the new genesis file using the following command:
    1. certikd migrate genesis_old.json --chain-id=shentu-incentivized-2 --genesis-time=”<genesis_time>” > genesis.json
  6. Make sure to terminate any running certikd process. Copy the new genesis file to certikd config directory (by default .certikd/config/genesis.json).
  7. update the seed nodes with the provided list. Edit the config file under the config directory.
    1. for example, seeds = "9e29e87375a839ac785fed7bcfe8c56866313e18@ec2-3-209-80-51.compute-1.amazonaws.com:26656"
  8. Run certikd unsafe-reset-all
  9. start certikd.

Note that you can skip 3~5 by waiting out and downloading the new official genesis file, planned to be updated here.

The chain will not start until the genesis time. Once you are done setting things up and started certikd process, wait until the genesis time is reached in UTC to see new blocks being produced.

Make sure you are using the new binary after step 2.

Here are the seed nodes you can connect to

# List of seed nodes to connect to
9e29e87375a839ac785fed7bcfe8c56866313e18@ec2-3-209-80-51.compute-1.amazonaws.com:26656
43cf8249245e5df93dc02108bee48e74f2748903@ec2-34-204-190-245.compute-1.amazonaws.com:26656
990a3669b7e21dedd58a02b85726d35a12fb8c09@ec2-3-235-76-135.compute-1.amazonaws.com:26656
f7eafa7ee0fddf128b269a474be64e185a715569@3.84.148.234:26656
fd2040dfb19e07840231d554482764768fbdf229@18.205.60.42:26656
db446019f03f5ae8bffa97c0172bce7e13e9db77@54.145.42.110:26656

You can add the seeds using the above list. Separate them by a comma. For example:

seeds = "9e29e87375a839ac785fed7bcfe8c56866313e18@ec2-3-209-80-51.compute-1.amazonaws.com:26656,43cf8249245e5df93dc02108bee48e74f2748903@ec2-34-204-190-245.compute-1.amazonaws.com:26656"

Note that these won't be up until we finish our own upgrade process.

genesis.json shasum
d7b7403d8bba0bed6aeb0e15d351882545d23dc3
sha256sum
bfc140b9e5f020185105c208fb813f2be00308823c0ac1a284e26e727a51a116

Changelog :

Features

  • (x/cert) Added command for decertifying a validator.

Improvements

  • (x/cert) Improved query results for certificates.

Bug Fixes

  • (x/cvm) Fixed contract storage inconsistency when export-import.
  • (x/cvm) Calling a pure type function is also rerouted to query.
  • (x/cert) Validator consensus public key now appears as string in a query.

Don't miss a new testnet release

NewReleases is sending notifications on new releases.