Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Update bandd & yoda guide (for v1.2.7 release)

Bun Uthaitirat edited this page Nov 27, 2020 · 1 revision

This guide explains how to upgrade yoda program that currently running. The aim of this guide is to allow validators on BandChain to smoothly update their yoda service without any significant downtime.

Upgrade steps

  1. Go to BandChain directory and checkout to the latest release.
cd $HOME/bandchain/chain
git fetch
git checkout v1.2.7
  1. Build the new version
make install
  1. Check the built bandd and yoda versions
> bandd version --long
name: bandchain
server_name: bandd
client_name: bandcli
version: 1.2.7
commit: e677f114eb723491b03b925c9803bb9e6a108cf7
build_tags: ledger
go: go version go1.14.9 darwin/amd64
> yoda version
1.2.7
  1. Stop the old yoda process.
sudo systemctl stop yoda
  1. Restart thebandd process
sudo systemctl restart bandd

Make sure bandd service continues to mine blocks by running journalctl -f -u bandd.service

  1. Start yoda back after bandd has started processing the blocks
sudo systemctl start yoda

You can check the log of yoda after restarting it by journalctl -f -u yoda.service