Snapshot
Address Book Updates every 5 hour
wget -O $HOME/.fxcore/config/addrbook.json https://files.nodeshub.online/mainnet/functionx/addrbook.json
Snapshot
sudo systemctl stop functionx
# Back up priv_validator_state.json if needed
cp ~/.fxcore/data/priv_validator_state.json ~/.fxcore/priv_validator_state.json.backup
# On some tendermint chains
fxcored unsafe-reset-all --home $HOME/.fxcore --keep-addr-book
# On other tendermint chains
fxcored tendermint unsafe-reset-all --home $HOME/.fxcore --keep-addr-book
SNAP_URL=$(curl -s https://files.nodeshub.online/mainnet/functionx/snapshot/snap-info.txt | grep "Snapshot_URL" | cut -d ' ' -f 2)
curl ${SNAP_URL} | lz4 -dc - | tar -xf - -C $HOME/.fxcore
mv $HOME/.fxcore/priv_validator_state.json.backup $HOME/.fxcore/data/priv_validator_state.json
sudo systemctl restart functionx && sudo journalctl -u functionx -f -o cat
Last updated