ZooBC testnet updates to 0.6.6 without a chain restart
Accounts, balances and chain history remain in place. Node operators must update by hand before the new rules switch on to avoid state drift and a later snapshot resync.
作者:Roberto Capodieci · 发布于
The ZooBC testnet is updating to version 0.6.6. This is an update of the running chain, not a restart: your account, your balance and everything you did stay as they are.
Our own nodes already run 0.6.6. We register the release on the chain within the next hour. From that registration, the new rules switch on in about 15 minutes (60 blocks), as soon as two thirds of the registry nodes run 0.6.6.
If you run a node: update it by hand, now
One line, on the server:
sudo bash /opt/zoobc/installer/install --chain testnet --update --release v0.6.6-testnet --yes
The --release part is needed for the next hour only: until the registration, the gateway does not yet offer 0.6.6 as the latest release. The line checks the release's signature, swaps the programs and restarts the node. Your node keeps its key, its owner account, the chain and its logs.
To check afterwards:
systemctl is-active zoobc
curl -s 127.0.0.1:8080/api/v1/node/info | python3 -m json.tool | grep '"version"'
The first line must say active, the second must show 0.6.6.
Why by hand, and why now. A 0.6.4 node's own updater waits two days after a registration before it installs, and the rules switch on 15 minutes after it. A node still on 0.6.4 at the switch does NOT stop: it goes on applying blocks under the old rules, so its state can drift from the chain's without any sign, and it stops a day later at its own switch. Such a node then needs the update AND a resync from a snapshot. A node updated before the switch needs nothing more.
From 0.6.6 on, on the testnet
- The self-updater waits 20 blocks (about 5 minutes) after a registration. An update moves a node.conf that holds the old default (11,520) to 20; a value you chose yourself is kept.
- A release's rules switch on 60 blocks (about 15 minutes) after its registration, once two thirds of the registry nodes run it. So from the next release, an updating node no longer misses a switch.
What is new for everybody (from the switch on)
- The exchange has no smallest order in units any more. Until now nobody could sell less than 0.025 of a token, which is a lot for a token like ZBTC. From the switch, an order only has to be fillable: at least the smallest unit of each side. The fee is what an order pays.
- Sender lists. An account can keep a list of the senders it accepts only, or a list of the senders it refuses. A payment from a sender the list does not accept is refused; if it gets into a block anyway it does nothing and its sender pays the fee. The list is kept on the chain as hashes, not as addresses. For now it is set with the command-line tool (
zbc-cli sender-list-mode,sender-list-add,sender-list-remove,sender-list-show,sender-list-check); the wallet's screen comes with a later wallet version. - An expired token's units no longer move to another account by any path (an escrow approval, a schedule, a stream, a game, a market).
- A scheduled transfer can use any token. Tokens whose id is a negative number (about half of them) could not be scheduled before.
- A claim on a node and a decline are no longer refused by the other side's transact policy.
- Blocks: the fee-free duties take at most a quarter of a block; the shares a split policy names count against a block's ceiling; a node drawn alone to make a block keeps its score.
What is new at once (no switch needed)
- A transaction that a block is just taking is shown as pending (
mempool) by the node, no longer as "not found" for a moment. - When a node is too busy to take a transaction it answers "busy, send again in N seconds" (HTTP 503 with
Retry-After). The tools read it as "not sent, send again", and the same signed transaction can be sent again. - An answer that cannot read a value says so (a
_errorfield) instead of showing a default.
Thank you for testing. Break things, tell us what you find.