Skip to content

GXB-Core Release v1.0.190318

Compare
Choose a tag to compare
@ddggstudy ddggstudy released this 18 Mar 03:36
· 180 commits to master since this release

This is a protocol upgrade release. All nodes should upgrade before 2019-03-29 04:00:00 UTC.

New features:

  • Support inter-contract calling
  • Free of charge about smart contract RAM fee(the charge is deducted when it is occupied, and it is returned when the corresponding RAM is released)
  • The fees of contract calling(base fee and cpu fee) will returned based on the CDD policy
  • Add smart contract api: inline_transfer/get_table_rows_ex
  • Add account history of inter contract callings and withdraw contract asset
  • Add state db snapshot functionality
  • Add command line functionality of pruning block
  • API server supports sending transactions through http
  • Optimize smart contract logs (still output logs when the contract exits abnormally)
  • Smart contract api: print api supports more types of values

Bug Fix:

  • Fix crash when deleting smart contract records
  • Fix the calculation cost failure problem

Other

  • Fix compile fail on ubuntu18.04

SHA256 checksum:

  • e40da4a730468adbe4226648ae8dc2b2626d2ae16027d2ec1b43bfe7168eff52 gxb_1.0.190318-osx.tar.gz
  • c387f707c9cfda0bbfd7bde2f4c160db6eb0e983b53a69191fcfc3bdda4b99ef gxb_1.0.190318-ubuntu-14.04.tar.gz

upgrade steps:

  1. download the latest release package, and unzip:
wget 'https://github.com/gxchain/gxb-core/releases/download/v1.0.190318/gxb_1.0.190318-ubuntu-14.04.tar.gz' -O gxb_1.0.190318-ubuntu-14.04.tar.gz && tar zxvf gxb_1.0.190318-ubuntu-14.04.tar.gz
  1. 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 xxx &

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 16418371

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