Home/Networks/Safrochain
Safrochain Logo

Safrochain

● ACTIVE

A Blockchain Bridging Local Lives and Global Assets

Safrochain Binary Upgrade

Tip

Looking to install a new node from scratch? Visit the Validator Installation Guide.

Upgrade to v0.3.0

Target BlockProposal IDRelease VersionBinary Daemon
4557100#2v0.3.0safrochaind

Download & Extract Binary

cd $HOME
rm -rf safrochain-node
git clone https://github.com/Safrochain-Org/safrochain-node.git
cd safrochain-node
git checkout v0.3.0
make build
./build/safrochaind version

Start a new tmux session

tmux new -s safrochain-upgrade

Run the auto-upgrade script.

⚠️ NOTE: Make sure you adjust the following according to your setup:
UPGRADE_SCRIPT="https://raw.githubusercontent.com/astrostake/scripts/refs/heads/main/upgrade_binary.sh"
 
curl -sL $UPGRADE_SCRIPT | bash -s -- \
-b "safrochaind" \
-t "4557100" \
-n "$HOME/safrochain-node/build/safrochaind" \
-p "$HOME/go/bin" \
-r "http://localhost:16657" \
-i "2" \
-a "http://localhost:16317" \
-d "https://discord.com/api/webhooks/xxx/yyy" \ # optional
--progress-interval 0
Flag explanation:
FlagNameDescription
-bbinary-nameName of the running daemon (e.g. safrochaind)
-ttarget-blockBlock height at which the upgrade should happen
-nnew-binary-pathFull path to the new binary
-pinstall-pathPath where the current binary is installed (default: $HOME/go/bin)
-rrpc-urlRPC endpoint used to monitor current block height
-iproposal-id(Optional) Proposal ID to validate governance status
-aapi-url(Optional) API endpoint used to fetch proposal status