Installing binaries:
cd $HOMEgit clone https://github.com/axone-protocol/axonedcd axonedgit checkout v12.0.0make install
Verify:
axoned version --long | grep -e version -e commit
Output logs should be like this:• version: 12.0.0• commit: 02cf86f0599d6c9b861a74ae14802ec121174088
axoned init BITNODES_guide --chain-id axone-1
Prepare cosmovisor directories and copy binary:
mkdir -p $HOME/.axoned/cosmovisor/genesis/binln -s $HOME/.axoned/cosmovisor/genesis $HOME/.axoned/cosmovisor/current -fcp $(which axoned) $HOME/.axoned/cosmovisor/genesis/bin
Install cosmovisor:
go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@v1.7.0
Download genesis:
wget -O $HOME/.axoned/config/genesis.json "https://snapshots.axone.bitnodes.xyz/axone/genesis.json"sha256sum $HOME/.axoned/config/genesis.json
Important!• The correct checksum should be: f1a8ccf1eea946a12177d50c16b6f7ef00a74c287041a02382860062e324405c
Download addrbook
wget -O $HOME/.axoned/config/addrbook.json "https://snapshots.axone.bitnodes.xyz/axone/addrbook.json"
Set up the minimum gas price
sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0uaxone\"/;" ~/.axoned/config/app.toml
Set up pruning (OPTIONAL)
sed -i -e 's|^pruning *=.*|pruning = "custom"|' -e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' -e 's|^pruning-interval *=.*|pruning-interval = "10"|' $HOME/.axoned/config/app.toml
Change ports (OPTIONAL)
sed -i -e "s%:1317%:17617%; s%:8080%:17680%; s%:9090%:17690%; s%:9091%:17691%; s%:8545%:17645%; s%:8546%:17646%; s%:6065%:17665%" $HOME/.axoned/config/app.tomlsed -i -e "s%:26658%:17658%; s%:26657%:17657%; s%:6060%:17660%; s%:26656%:17656%; s%:26660%:17661%" $HOME/.axoned/config/config.toml
Enable/Disable Snapshots (OPTIONAL)
snapshot_interval=1000sed -i.bak -e "s/^snapshot-interval *=.*/snapshot-interval = \"$snapshot_interval\"/" ~/.axoned/config/app.toml
Create a service file
sudo tee /etc/systemd/system/axone.service > /dev/null << EOF
[Unit]
Description=Axone node service
After=network-online.target
[Service]
User=$USER
WorkingDirectory=$HOME/.axoned
ExecStart=$(which cosmovisor) run start
Restart=on-failure
RestartSec=5
LimitNOFILE=65535
Environment="DAEMON_HOME=$HOME/.axoned"
Environment="DAEMON_NAME=axoned"
Environment="UNSAFE_SKIP_BACKUP=true"
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=true"
[Install]
WantedBy=multi-user.target
EOF
Important!Don't forget to replace $USER with your username
Download latest snapshot
📦Download snapshotStart node
systemctl daemon-reloadsudo systemctl enable axone.servicesudo systemctl start axone.servicesudo journalctl -u axone.service -f --no-hostname -o cat