Skip to content

GXB-Core TestNet Release v1.0.200115

Compare
Choose a tag to compare
@bijianing97 bijianing97 released this 15 Jan 10:11
· 56 commits to testnet since this release

TestNet-Release Notes

The GXB-Core TestNet software has been update to the new v1.0.200115 Release. This release modifies the voting logic form "multiple vote"(one vote to an unlimited number of accounts) to "single vote" (one vote only to one account). Now the reward of a block is divided into two parts, one part is given to the node that produced the block, and the other part is given to the nodes which's weight of votes must be top "35"(the number is not static, and committees can modify it by proposals) in all nodes.

New features:

  • Add the code for the new votes counting logic
  • Add the cli_wallet api: staking_create, which can be used to create staking objects(votes)
  • Add the cli_wallet api: staking_update, which can be used to update a staking object from one trustnode to another trustnode
  • Add the cli_wallet api: staking_claim, which can be used to withdraw the staking when the vote has expired
  • Add the cli_wallet api: witness_set_commission, the witness can set the dividend ratio with it
  • Add the cli_wallet api: witness_unbanned, which can be used to release the witness form the blacklist
  • Add the database api: get_staking_object, you can get the staking objects of one account with it
  • Add the database api: get_staking_object_by_witness,this api is to get staking objects with specified witness_id, position and number
  • Add the macro
ACTION 
PAYABLE 
TABLE 
CONTRACT <contractname> : public contract

to replace

//@abi action
//@payable   
//@abi table [tablename] i64
Class <contractname> : public contract

Bug Fix

  • Fix OOM bug of elasticsearch plugin

SHA256 checksum

  • 5240e8c027d3094237b7afa4a26e9c760f59ec5b7375a9752f6debf9c4983017 gxb_1.0.200115-osx.testnet.tar.gz
  • 2ac8e7af7a34fa7d938557061973511dadf24ab0b59f00a6ca2a1c26dc205474 gxb_1.0.200115-ubuntu-14.04.testnet.tar.gz
  • f7af17e0bb5ce2a92687979b96a03ab0ef9d4ae621f667dbdbab664f716debf4 gxb_1.0.200115-with-plugin-osx.testnet.tar.gz
  • 0eb55e905c34a9db963c8ef2eab2d6d6dd9b849074756f2fff3f6a2392a5ec64 gxb_1.0.200115-with-plugin-ubuntu-14.04.testnet.tar.gz

Who Should Upgrade?

This is a protocol upgrade release and requires a replay block. ALL NODES should upgrade before 2020-01-16 04:00:00 UTC.

Old logic and votes will be deprecated,so make sure you have switched to the new version before 2020-01-16 04:00:00 UTC

Upgrade steps

  1. download the latest release package, and unzip:
    wget 'https://github.com/gxchain/gxb-core/releases/download/v1.0.200115/gxb_1.0.200115-ubuntu-14.04.testnet.tar.gz' -O gxb_1.0.200115-ubuntu-14.04.testnet.tar.gz && tar zxvf gxb_1.0.200115-ubuntu-14.04.testnet.tar.gz

  2. stop witness_node:

kill -s SIGINT $(pgrep witness_node)
  1. start witness_node with your original startup command line(replace the following command line with your custom command line):
nohup ./programs/witness_node/witness_node [options] &

If you encounter a post-upgrade sync block stop, you need to use block cropping for processing, then replay blockchain

  1. Cutting block
#cut block
./programs/witness_node/witness_node -x 20600000

#remove old snapshot
rm -rf trusted_node/blockchain/object_database
  1. Restart (with parameter --fast-replay)
nohup ./programs/witness_node/witness_node --fast-replay [other-options] # (The parameters are omitted here,each node is started differently)