Instructions:
Part 1:
# Stop your v1.9.0 node
sudo systemctl stop secret-node
# Set pruning=nothing
perl -i -pe 's/^pruning =.*$/pruning = "nothing"/' ~/.secretd/config/app.toml
# Set halt-height to 2 blocks from now
perl -i -pe 's/^halt-height =.*$/halt-height = 8861802/' ~/.secretd/config/app.toml
# Restrat your v1.9.0 node
sudo systemctl restart secret-node
Wait for halt-height (might take a while to reach consensus)...
Part 2:
# Stop your v1.9.0 node
sudo systemctl stop secret-node
# Remove halt-height
perl -i -pe 's/^halt-height =.*$/halt-height = 0/' ~/.secretd/config/app.toml
# Figure out currently used db backend
DB_BACKEND=$(awk -F \" '/^db_backend =/{print $2}' ~/.secretd/config/config.toml)
# Get the v1.9.1 binaries
wget "https://github.com/scrtlabs/SecretNetwork/releases/download/v1.9.1/secretnetwork_1.9.1_mainnet_${DB_BACKEND}_amd64.deb"
# Verify the v1.9.1 binaries
echo '95b5ccb52abeae8e673445fda2cd08bfff79932f20176bf6229270c51a44c9e8 secretnetwork_1.9.1_mainnet_goleveldb_amd64.deb
632c014c934ea826f7fac563ef4f41fcd644ebe31824239069c141deda318476 secretnetwork_1.9.1_mainnet_rocksdb_amd64.deb' |
grep "$DB_BACKEND" |
sha256sum --check
# Install the v1.9.1 binaries
sudo apt install -y "./secretnetwork_1.9.1_mainnet_${DB_BACKEND}_amd64.deb"
# re-apply any systemd unit file customizations
# Restart the node
sudo systemctl restart secret-node