Bittorrent-Chain Delivery layer v1.0.9 Release

Dear Developers:

The BitTorrent Chain (BTTC) has upgraded the delivery layer to version v1.0.9 , the main new features include:

  • Resolved an issue with the multiChain proposal. (#79, #95)
  • Added query event record list logs. (#94)
  • Introduced a timeout setting for BTTC access. (#93)
  • Implemented the NoAckValidatorCheck proposal. (#83)
  • Upgraded Go1.21 and updated dependency libraries. (#92, #97)

Note: Delivery and BTTC need to be compiled using Go version 1.21. Please install or upgrade to Go version 1.21 before compiling.

For release note, please refer to:

delivery: Release v1.0.9 · bttcprotocol/delivery · GitHub

Please note that:

  • The delivery service will be upgraded to version v1.0.9.
  • This is a mandatory upgrade, all nodes need to be updated to avoid sync issues.

For upgrading, please follow the steps below

  1. Shutdowndeliveryd and rest-server progress.
    a. If it is a validator node, shut down bridge as well;
  2. Use Golang version 1.21 to compile delivery and bttc.
  3. Download or update the code to the latest version:
 $ git clone https://github.com/bttcprotocol/delivery.git
 $ cd delivery
 $ git checkout v1.0.9
  1. Compile.
 $ make install
  1. Check the version, and make sure it is 1.0.9.
 $ deliveryd version
 1.0.9
  1. Initiate startup progress.

Since delivery layer v1.0.9, the startup progress has changed from previous 3 scripts(delivery-bridge-start.sh, delivery-server-start.sh, delivery-start.sh) to 1 script delivery-start.sh:

#!/usr/bin/env sh
set -x #echo on

DELIVERY_HOME_DIR=~/.deliveryd
deliveryd --chain mainnet --home $DELIVERY_HOME_DIR start --node http://0.0.0.0:26657 --laddr tcp://0.0.0.0:1317 --bridge --all --rest-server

If it is not a validator node, please remove the --bridge --all.

If there are any synchronization issues, please try the following steps:

  1. Stop delivery and rest-server processes.
  2. Use the following rollback command to fix recently abnormal blocks:
 $ deliveryd —-home ${deliveryd_home} rollback
  1. Restart deliveryd and rest-server process.

Compile bttc

  1. Download or update the code to the lastest verion:
$ git clone https://github.com/bttcprotocol/bttc.git 
$ cd bttc
$ git checkout v1.1.0
  1. Compile

Stop the bttc process before compiling

 $ make bttc
  1. Check the compiled version
$ bttc version

Version: 1.1.0-stable
Git Commit: d7cf007ce7983cffbf1f4a1ff55637b4860ae630
Architecture: amd64
Go Version: go1.21.9
Operating System: linux
  1. Initiate startup progress.

Use the script bttc-start.sh provided by launch to start, or you can use a script of your own.

 $ sh bttc-start.sh

Thanks!

Bittorrent-Chain Developer Community

2 Likes