GXChain Blockchain implementation
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
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
Stop witness_node:
kill -s SIGINT $(pgrep witness_node)
# 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
下载解压最新节点程序:
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
安全停止witness_node:
kill -s SIGINT $(pgrep witness_node)
# 使用原来的启动方式进行启动: history|grep witness_node
nohup ./programs/witness_node/witness_node [other-options]
提示:如果你的是一个出块节点(BP),由于升级不及时可能已经被系统自动关进小黑屋,无法参与出块,可以在 https://wallet.gxb.io 导入账户活跃权限私钥后,在资料页面进行操作,离开小黑屋
account_history_leveldb
, which can store and query all related operations of all accounts.
How to use it.get_account_relative_ops
, which can be used to query all the relative operations of a account.get_staking_objects_by_witness
.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.
get_asset_precision
get_unsigned_transaction_hex
assert_recover_key
api support public_key of type stringget_block
apistaking_create
, which can be used to create staking objects(votes)staking_update
, which can be used to update a staking object from one trustnode to another trustnodestaking_claim
, which can be used to withdraw the staking when the vote has expiredwitness_set_commission
, the witness can set the dividend ratio with itwitness_unbanned
, which can be used to release the witness form the blacklistget_staking_objects
, you can get the staking objects of one account with itget_staking_objects_by_witness
,this api is to get staking objects with specified witness_id, position and numberACTION
PAYABLE
TABLE
CONTRACT <contractname> : public contract
As alternative usage of
//@abi action
//@payable
//@abi table [tablename] i64
Class <contractname> : public contract
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.
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
Stop witness_node:
kill -s SIGINT $(pgrep witness_node)
nohup ./programs/witness_node/witness_node --replay-blockchain --fast-replay [other-options] # (The parameters are omitted here,each node is started differently)
get_staking_objects
and get_staking_objects_by_witness
instead of get_staking_object
、get_staking_object_by_witness
contract_call_cashback_balance
, staking_cashback_balance
,Support them for full_object api and fix account_object reflectget_staking_object_by_witness
, use more friendly API nameswitness_unbanned
operation logical checkstaking_object
could not claimThe 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.
staking_create
, which can be used to create staking objects(votes)staking_update
, which can be used to update a staking object from one trustnode to another trustnodestaking_claim
, which can be used to withdraw the staking when the vote has expiredwitness_set_commission
, the witness can set the dividend ratio with itwitness_unbanned
, which can be used to release the witness form the blacklistget_staking_object
, you can get the staking objects of one account with itget_staking_object_by_witness
,this api is to get staking objects with specified witness_id, position and numberACTION
PAYABLE
TABLE
CONTRACT <contractname> : public contract
to replace
//@abi action
//@payable
//@abi table [tablename] i64
Class <contractname> : public contract
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
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
stop witness_node:
kill -s SIGINT $(pgrep witness_node)
nohup ./programs/witness_node/witness_node [options] &
#cut block
./programs/witness_node/witness_node -x 20600000
#remove old snapshot
rm -rf trusted_node/blockchain/object_database
nohup ./programs/witness_node/witness_node --fast-replay [other-options] # (The parameters are omitted here,each node is started differently)
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
kill -s SIGINT $(pgrep witness_node)
nohup ./programs/witness_node/witness_node xxx &
# cut block
./programs/witness_node/witness_node -x 16418371
# remove old snapshot
rm -rf trusted_node/blockchain/object_database
nohup ./programs/witness_node/witness_node --fast-replay xxx (The parameters are omitted here, each node is started differently)