Skip to main content

Konstellation Upgrade

How to set up or migrate Konstellation node to PebbleDB

Build the client with PebbleDB

cd $HOME && rm -rf konstellation && \
git clone https://github.com/konstellation/konstellation.git && cd konstellation && \
git checkout v0.6.2 && \
go mod edit -replace github.com/tendermint/tm-db=github.com/notional-labs/tm-db@pebble && \
go mod tidy && \
make BUILD_TAGS=pebbledb LDFLAGS="-w -s -X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb" build

Replace the old binary

If you're NOT using Cosmovisor

sudo mv build/knstld $(which knstld)

If you're using Cosmovisor

mkdir -p $HOME/.knstld/cosmovisor/upgrades/v0.6.2/bin && \
mv build/knstld $HOME/.knstld/cosmovisor/upgrades/v0.6.2/bin/

Adjust settings

sed -i -e "s/^db_backend *=.*/db_backend = "pebbledb"/" $HOME/.knstld/config/config.toml
sed -i -e "s/^app-db-backend *=.*/app-db-backend = "pebbledb"/" $HOME/.knstld/config/app.toml

Install the Snapshot

Restart the Konstellation service & monitor logs

sudo service knstld restart
sudo journalctl -fu knstld -o cat