atomone-icon

AtomeOne

Chain ID:

atomone-1

Block Height:

RPC Status:

Snapshot

Update Packages and Install Prerequisites
sudo apt update
sudo apt install snapd lz4 -y
Stop the service and reset the data
sudo systemctl stop atomoned
cp $HOME/.atomone/data/priv_validator_state.json $HOME/.atomone/priv_validator_state.json.backup
rm -rf $HOME/.atomone/data
Download Latest Snapshot
curl -L https://snapshots.revonode.com/atomone/atomone-latest.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.atomone
mv $HOME/.atomone/priv_validator_state.json.backup $HOME/.atomone/data/priv_validator_state.json
Restart Service
sudo systemctl restart atomoned && sudo journalctl -fu atomoned -o cat

Statesync

Stop Chain and Backup Validator State
sudo systemctl stop atomoned
cp $HOME/.atomone/data/priv_validator_state.json $HOME/.atomone/priv_validator_state.json.backup
atomoned tendermint unsafe-reset-all --keep-addr-book --home $HOME/.atomone
Setup Variable Config
STATE_SYNC_RPC=https://rpc-atomone.revonode.com
STATE_SYNC_PEER=35e39b83d2d0d76a8ebd97939629fe0730508c0b@seed-atomone.revonode.com:10356
LATEST_HEIGHT=$(curl -s $STATE_SYNC_RPC/block | jq -r .result.block.header.height)
SYNC_BLOCK_HEIGHT=$(($LATEST_HEIGHT - 2000))
SYNC_BLOCK_HASH=$(curl -s "$STATE_SYNC_RPC/block?height=$SYNC_BLOCK_HEIGHT" | jq -r .result.block_id.hash)
Setup Chain Config
sed -i \
-e "s|^enable *=.*|enable = true|" \
-e "s|^rpc_servers *=.*|rpc_servers = "$STATE_SYNC_RPC,$STATE_SYNC_RPC"|" \
-e "s|^trust_height *=.*|trust_height = $SYNC_BLOCK_HEIGHT|" \
-e "s|^trust_hash *=.*|trust_hash = "$SYNC_BLOCK_HASH"|" \
-e "s|^persistent_peers *=.*|persistent_peers = "$STATE_SYNC_PEER"|" \
$HOME/.atomone/config/config.toml
Restore Validator State From Backup
mv $HOME/.atomone/priv_validator_state.json.backup $HOME/.atomone/data/priv_validator_state.json
Restart Node
sudo systemctl restart atomoned && sudo journalctl -u atomoned -f