Skip to content

Releases: gxchain/gxb-core

v1.0.201217

17 Dec 01:33
Compare
Choose a tag to compare

GXB-Core Release v1.0.201217

Notice:

This is a hotfix release of GXB-Core Release v1.0.200327, Every node should upgrade to solve block generation issue caused by integer calculation overflow.

Hot fix Commit:

How to Upgrade: Download and replace programs/witness_node/witness_node

Download Link: https://github.com/gxchain/gxb-core/releases/tag/v1.0.201217

Upgrade steps

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

  2. Stop witness_node:

kill -s SIGINT $(pgrep witness_node)
  1. Restart
# Your original started up script: history|grep witness_node
nohup ./programs/witness_node/witness_node [other-options] # (The parameters are omitted here,each node is started differently)

Note: For a BP, if you cannot produce a block after upgrade, your TrustedNode may have been banned by the system, to solve this problem, open https://wallet.gxb.io, import your account and do unbanned on the profile tab


GXChain的网络由于出现出块奖励计算溢出,导致出块失败,目前已经完成修复,所有的节点需要升级程序以实现正常出块

修复代码:

升级方式:所有的节点需要替换节点程序后重启节点,来完成升级

下载地址:https://github.com/gxchain/gxb-core/releases/tag/v1.0.201217

升级步骤

  1. 下载解压最新节点程序:
    wget 'https://github.com/gxchain/gxb-core/releases/download/v1.0.201217/gxb_1.0.201217-ubuntu-14.04.tar.gz' -O gxb_1.0.201217-ubuntu-14.04.tar.gz && tar zxvf gxb_1.0.201217-ubuntu-14.04.tar.gz

  2. 安全停止witness_node:

kill -s SIGINT $(pgrep witness_node)
  1. 重启
# 使用原来的启动方式进行启动: history|grep witness_node
nohup ./programs/witness_node/witness_node [other-options]

提示:如果你的是一个出块节点(BP),由于升级不及时可能已经被系统自动关进小黑屋,无法参与出块,可以在 https://wallet.gxb.io 导入账户活跃权限私钥后,在资料页面进行操作,离开小黑屋

SHA256 checksum:

  • dab13eaa4920431a71e5a06d7949effbd3476465d03983b540c05f75a2d27fd0 gxb_1.0.201217-ubuntu-14.04.tar.gz
  • 4f73945a7e34d6c3ed3fd9ba8935b0036e895ddb59eb5f039b6c7f4196a23dfd gxb_1.0.201217-with-plugin-ubuntu-14.04.tar.gz

GXB-Core TestNet Release v1.0.200701

02 Jul 07:55
Compare
Choose a tag to compare

This upgrade adds a new plugin and fixes some bugs

New features:

  • Add a new plugin account_history_leveldb, which can store and query all related operations of all accounts.
    How to use it.
  • Add database api : get_account_relative_ops, which can be used to query all the relative operations of a account.

Bug Fix

  • Fix pagination issue of get_staking_objects_by_witness.

SHA256 checksum:

  • 8bcb0021ce6c9aca1cadb8f94f9410464eaffb94d6f5ed77aa2ebc1a9b222ff9 gxb_1.0.200701-osx.testnet.tar.gz
  • bd799db72e89bdce3f1428cd176fe91392332d761c65acc32e1dd83b976939c3 gxb_1.0.200701-ubuntu-14.04.testnet.tar.gz
  • f59ac5c50ab966ec31d91ea5b8fb009fe2c805f6bed0bb3088fbeaa4b782a880 gxb_1.0.200701-with-plugin-osx.testnet.tar.gz
  • a95b7fcf6941b63a695aee7d72bd0d3eca2882eb0b8f422ad10bf558ef1da308 gxb_1.0.200701-with-plugin-ubuntu-14.04.testnet.tar.gz

GXB-Core Release v1.0.200327

16 Mar 04:09
Compare
Choose a tag to compare

This is a protocol release for upgrading. All nodes shall upgrade before 2020-03-27 04:00:00 UTC.

Release Notes

The GXB-Core software has been upgraded to the new v1.0.200327 release. This release modified the voting logic form "multiple vote"(one vote to an unlimited number of accounts) to "one token, one vote" (each token can vote to only one account). From now on the reward as a node is divided into two parts. The first part is for the node which producing the block, and the other part is the nodes which's weight of the voting ranking must be top "35"(The number is not fixed and could be modified by the commission proposals) in all nodes.This release also contains the new contract api and database api.

New features:

  • Add smart contract api: get_asset_precision
  • Add database api: get_unsigned_transaction_hex
  • Modify smart contract api: assert_recover_key api support public_key of type string
  • Modify database api: add ref_block_prefix field in get_block api
  • Smart contract development support set/map
  • 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_objects, you can get the staking objects of one account with it
  • Add the database api: get_staking_objects_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

As alternative usage of

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

Bug Fix

  • Fix log issue "ERROR_WHILE_CONVERTING_VALUE_TO_STRING"
  • Fix switch chain bug when apply block
  • Fix elastic search plugin adaptation bug
  • Fix query_txid plugin static link leveldb error
  • Fix OOM bug of elasticsearch plugin
  • Fix contract update does not set code hash error

Other

  • Support full-node account history plugin with elastic search database
  • Support query transaction rows by txid plugin

SHA256 checksum

  • d5a939ed81a14e9bdf89feeeb580d29722e9df6ef6c24e6fdef5d960cb231338 gxb_1.0.200327-osx.tar.gz
  • 383e5834683424b0a58f47fb1fecf6186ee0accdf63c0f104391bc3f24ddbb37 gxb_1.0.200327-ubuntu-14.04.tar.gz
  • 14f10e4bce5bf24c22b6a9e9bbc5740cb6e90328bdac54b4c916693e3a8eab9a gxb_1.0.200327-with-plugin-osx.tar.gz
  • 8a61a1cb540cf28671a25fab2c2a546650ea59d974a4c9c7190fd22e79b1803d gxb_1.0.200327-with-plugin-ubuntu-14.04.tar.gz

Who Should Upgrade?

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

Old logic and votes will be deprecated,so make sure you have switched to the new version before 2020-03-27 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.200327/gxb_1.0.200327-ubuntu-14.04.tar.gz' -O gxb_1.0.200327-ubuntu-14.04.tar.gz && tar zxvf gxb_1.0.200327-ubuntu-14.04.tar.gz

  2. Stop witness_node:

kill -s SIGINT $(pgrep witness_node)
  1. Restart (with parameter --replay-blockchain --fast-replay)
nohup ./programs/witness_node/witness_node --replay-blockchain --fast-replay  [other-options] # (The parameters are omitted here,each node is started differently)

GXB-Core TestNet Release v1.0.200224

24 Feb 06:47
Compare
Choose a tag to compare

This is a protocol upgrade release for TestNet. All TestNet nodes should be upgraded before 2020-02-24 10:00:00 UTC.

Bug Fix:

  • Fixed a bug where one could update the staking without permission
  • Use more friendly API namesget_staking_objectsand get_staking_objects_by_witness instead of get_staking_objectget_staking_object_by_witness
  • Add the vesting_balance_object :contract_call_cashback_balance , staking_cashback_balance ,Support them for full_object api and fix account_object reflect

SHA256 checksum:

  • 6de811f790aad802bfcb3735d37358ed0b7dd09fd3f6c4f197def8ffd7511673 gxb_1.0.200224-osx.testnet.tar.gz
  • d8a7f19ae352ba66aab0c7316471e29fab2130b857b4d4df2b7c7ee9684b0a4b gxb_1.0.200224-ubuntu-14.04.testnet.tar.gz
  • 86b785b03aca652584c51a2ad4a85f77aaec497a39396dd7ad71314516de9fea gxb_1.0.200224-with-plugin-osx.testnet.tar.gz
  • 4fd62cc058c451c2a621e0f0e3b5f5b720514407b16098bc9a8e2765119d4076 gxb_1.0.200224-with-plugin-ubuntu-14.04.testnet.tar.gz

GXB-Core TestNet Release v1.0.200204

12 Feb 06:54
Compare
Choose a tag to compare

This is a protocol upgrade release for TestNet. all TestNet nodes should be upgraded before 2020-02-04 10:00:00 UTC.

Bug Fix:

  • Fix the database api: get_staking_object_by_witness, use more friendly API names
  • Fix the witness_unbanned operation logical check
  • Fixed a bug that expired staking_object could not claim

SHA256 checksum:

  • a02e0de553e5e10f255bb906a4f89913b3ae53816ade8a8b11075a909eaf77c0 gxb_1.0.200204-osx.testnet.tar.gz
  • 99599ce5c0e47d4e4cfcf84eb89283853f2082cf33ca9e20b677771d49ede1d4 gxb_1.0.200204-ubuntu-14.04.testnet.tar.gz
  • 675eae244d58ef729a227d0847d20fe6a448143a60b0e5ef353cb07404081e3e gxb_1.0.200204-with-plugin-osx.testnet.tar.gz
  • c99649f0df8804be20437d1e4369e4cf49efc3553125cadc165c7aa4f12dde03 gxb_1.0.200204-with-plugin-ubuntu-14.04.testnet.tar.gz

GXB-Core TestNet Release v1.0.200115

15 Jan 10:11
Compare
Choose a tag to compare

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)

GXB-Core TestNet Release v1.0.190613

13 Jun 14:59
Compare
Choose a tag to compare

This upgrade fixes the contract update logic and requires a replay block

New features:

  • Smart contract development support set/map

Bug Fix:

  • Fix contract update does not set code hash error
  • Fix elastic search plugin adaptation bug
  • Fix query_txid plugin static link leveldb error

SHA256 checksum:

  • 94ce8cd7bb2090c28d8cca39d9a5012fe3dbdbd3d67e7ef0d6b84e335e543323 gxb_1.0.190613-osx.testnet.tar.gz
  • 05db3c48445d9aa148d8f5bd3438994730b4d0633632532326c26e0f712af171 gxb_1.0.190613-ubuntu-14.04.testnet.tar.gz
  • 80293985b0d0aa698869ebd1d7ca9ace4a57872883194545f874b2df05dbc453 gxb_1.0.190613-with-plugin-osx.testnet.tar.gz
  • 1942c91a0c13daabd38e7e98fb2b07dc82b97b8a2ef057fecb84dca21018b82d gxb_1.0.190613-with-plugin-ubuntu-14.04.testnet.tar.gz

GXB-Core TestNet Release v1.0.190521

21 May 08:58
Compare
Choose a tag to compare

This is a protocol upgrade release for TestNet. all TestNet nodes should be upgraded before 2019-05-27 16:00:00 UTC.

New features:

  • Add smart contract api: get_asset_precision
  • Add database api: get_unsigned_transaction_hex
  • Modify smart contract api: assert_recover_key api support public_key of type string
  • Modify database api: add ref_block_prefix field in get_block api

Bug Fix:

  • Fix log issue "ERROR_WHILE_CONVERTING_VALUE_TO_STRING"
  • Fix switch chain bug when apply block

Other

  • Support full-node account history plugin with elastic search database
  • Support query transaction rows by txid plugin

SHA256 checksum:

  • c2f2a327ff65a8b26a72d2d77089df813f650b29d399f11bf0825c5d309834bc gxb_1.0.190521-osx.testnet.tar.gz
  • 33a647314409fabd983953584c73fcf2114f2e728c0a2bfc024c7bec1e57e168 gxb_1.0.190521-ubuntu-14.04.testnet.tar.gz
  • 3e6d186706acb71c50c26761335f477f08676e5bc5a6de7d395ed94de32466e5 gxb_1.0.190521-with-plugin-osx.testnet.tar.gz
  • ff2d3208f4b8d1b8a7d90c33690ffbb897ed1d79b761200ed1a082455caff943 gxb_1.0.190521-with-plugin-ubuntu-14.04.testnet.tar.gz

GXB-Core Release v1.0.190321

21 Mar 10:51
Compare
Choose a tag to compare

This is NOT a protocol upgrade release. Node does not need to be upgraded.

New features:

  • cli_wallet: sign transaction with cli_wallet using last_irreversible block hash, in order to increase the chance that the transaction will be packaged, when the network forks.

GXB-Core Release v1.0.190318

18 Mar 03:36
Compare
Choose a tag to compare

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)