Skip to content

v0.9-testnet

Compare
Choose a tag to compare
@yoongbok-lee yoongbok-lee released this 02 Jul 21:24
· 165 commits to master since this release

This is a new release for CertiK Chain with various different features and bug fixes. The 0.8 chain data was copied over at height 1343300.

To upgrade to the new binary, there are two options.

  1. Startup from genesis (WARNING: due to high load of data in the genesis file, this method will require more than 8GB of RAM to follow.)

    1. Stop the running certik daemon (killall certikd).
    2. download the genesis.json file and replace config/genesis.json. (by default it is located in ~/.certikd/config/genesis.json.
    3. run certikd unsafe-reset-all.
    4. copy content in persistent_peers.txt to config/config.toml, under persistent_peers = "<paste content here>".
    5. run certikd start with the new binary.
    6. Note since the genesis data is big, the startup might take a few minutes.
  2. Starting from a pre-loaded state at height 1 (takes up to 2GB of memory)

    1. steps 1 through 4 should be the same with above.
    2. After copying persistent peers over, download data.zip
    3. Unzip data.zip, and copy over the content of the unzipped folder under data/ directory.

Note that it might take up to 5 minutes to load and commit the first height when starting off from genesis.

If you were a validator before the update, you will have to unjail yourself using the command certikcli tx slashing unjail.
It is crucial you run certikd unsafe-reset-all to prevent any unexpected behavior after you upgrade.

Changelog

Features

  • Update basic structures for certification module.
  • Add basic operations for certifiers and validators in certification module.
  • Custom Governance module
  • Add Cosmos's community pool spend proposal.
  • Add REST endpoints in the governance module for plain-text proposals.
  • optional --caller flag in view query now allows you to specify which account the simulated transaction is sent from
  • Introduce certificate and added compilation as one of the certificate types.
  • Allow cert query for all validators and change validators' parameter to crypto.Pubkey

Bug Fixes

  • Fix formatting error of abi query.
  • Fix CVM gas estimation while transaction gas limit handling.
  • Changed the way to query a certified validator and fixed when getting certifier of a validator.
  • Add return message while querying uncertified smart contract to replace panic
  • Add RESTful api for validators query

State Machine Breaking

  • Remove flat intrinsic gas cost from CVM.

Improvements

  • Add voting power (really amount staked) to REST votes query.
  • Add txhash to Deposit and Vote types so that they can be queried.
  • Add events for deposit and vote. Now they can be queried correctly.
  • Add Swagger API autogen.
  • Changes and fixes CVM contract deployment format.
  • Add CVM call/deploy commands under the root tx command.
  • Add e2e test for state export/import.
  • Custom "burning" mechanism removed. Now burns tokens while slashing.
  • Introduce maximum gas used by CVM per transaction.