🔌 Installation

1️⃣ Installation packages and dependencies

sudo apt update && sudo apt upgrade -y
sudo apt install curl git wget htop tmux build-essential jq make lz4 gcc unzip -y

➡️ Go Installation

cd $HOME
VER="1.23.4"
wget "https://golang.org/dl/go$VER.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$VER.linux-amd64.tar.gz"
rm "go$VER.linux-amd64.tar.gz"
[ ! -f ~/.bash_profile ] && touch ~/.bash_profile
echo "export PATH=$PATH:/usr/local/go/bin:~/go/bin" >> ~/.bash_profile
source $HOME/.bash_profile
[ ! -d ~/go/bin ] && mkdir -p ~/go/bin

2️⃣ Install node

Reminder

You can change the port and wallet name.
echo "export ODISEO_WALLET="mictowallet"" >> $HOME/.bash_profile
echo "export ODISEO_PORT="61"" >> $HOME/.bash_profile
source $HOME/.bash_profile
mkdir -p $HOME/.achilles/cosmovisor/genesis/bin
rm -rf odiseo
git clone https://github.com/daodiseomoney/Achilles.git odiseo
cd odiseo/achilles
make build
cd
mv /achillesd $HOME/.achilles/cosmovisor/genesis/bin/
sudo ln -sfn $HOME/.achilles/cosmovisor/genesis $HOME/.achilles/cosmovisor/current
sudo ln -sfn $HOME/.achilles/cosmovisor/current/bin/achillesd /usr/local/bin/achillesd
go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@v1.6.0

➡️ Create a service

sudo tee /etc/systemd/system/achillesd.service > /dev/null <<EOF
[Unit]
Description=xrpl node service
After=network-online.target

[Service]
User=$USER
ExecStart=$(which cosmovisor) run start
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
Environment="DAEMON_HOME=$HOME/.achilles"
Environment="DAEMON_NAME=achillesd"
Environment="UNSAFE_SKIP_BACKUP=true"
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:$HOME/.achilles/cosmovisor/current/bin"

[Install]
WantedBy=multi-user.target
EOF

➡️ Let’s activate it

sudo systemctl daemon-reload
sudo systemctl enable achillesd

➡️ Initialize the node & other

achillesd init "Moniker-Name" --chain-id ithaca-1
sed -i -e '/^chain-id = /c\chain-id = "ithaca-1"' $HOME/.achilles/config/client.toml
sed -i -e "s|^node *=.*|node = \"tcp://localhost:${ODISEO_PORT}657\"|" $HOME/.achilles/config/client.toml
sed -i -e '/^keyring-backend = /c\keyring-backend = "test"' $HOME/.achilles/config/client.toml

➡️ Genesis addrbook

curl https://files.mictonode.com/odiseo/genesis/genesis.json -o ~/.achilles/config/genesis.json
curl https://files.mictonode.com/odiseo/addrbook/addrbook.json -o ~/.achilles/config/addrbook.json

➡️ Port

sed -i.bak -e "s%:26658%:${ODISEO_PORT}658%g;
s%:26657%:${ODISEO_PORT}657%g;
s%:6060%:${ODISEO_PORT}060%g;
s%:26656%:${ODISEO_PORT}656%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${ODISEO_PORT}656\"%;
s%:26660%:${ODISEO_PORT}660%g" $HOME/.achilles/config/config.toml
sed -i.bak -e "s%:1317%:${ODISEO_PORT}317%g;
s%:8080%:${ODISEO_PORT}080%g;
s%:9090%:${ODISEO_PORT}090%g;
s%:9091%:${ODISEO_PORT}091%g;
s%:8545%:${ODISEO_PORT}545%g;
s%:8546%:${ODISEO_PORT}546%g;
s%:6065%:${ODISEO_PORT}065%g" $HOME/.achilles/config/app.toml

➡️ Peers and Seeds

SEEDS=""
PEERS="0b616b49e4832a958a08548f1f65c6a65663d488@46.4.52.158:26656,aaae9d7b30fc4f490e9243861075a2a8ed9d7c65@185.183.33.133:18656,fe54d4b6337c2db58190f98b2a46fffcbd9371e5@37.27.181.215:26656,8dceb983d6e50c5d3b0a23fc1d54daeb72d790e2@65.109.113.233:31356,4411c9656938976244b10064dc1a8cabf043294e@31.56.39.206:26656,e99e6507b81563f151301702cf981bc2fa606f98@77.237.244.209:26656,f752f5822c2e2bca20f8c2e4365952893b05d3bb@65.109.59.22:31356"
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.achilles/config/config.toml

➡️ Pruning

sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.achilles/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.achilles/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"10\"/" $HOME/.achilles/config/app.toml

➡️ Indexer & Other

sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.achilles/config/config.toml

➡️ Gas Settings

sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "0uodis"|g' $HOME/.achilles/config/app.toml

➡️ Prometheus

sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.achilles/config/config.toml

➡️ Starter Snap

Check snapshot height
echo "Odiseo Snapshot Height: $(curl -s https://files.mictonode.com/odiseo/snapshot/block-height.txt)"
achillesd tendermint unsafe-reset-all --home $HOME/.achilles --keep-addr-book

SNAPSHOT_URL="https://files.mictonode.com/odiseo/snapshot/"
LATEST_SNAPSHOT=$(curl -s $SNAPSHOT_URL | grep -oP 'odiseo_\d+\.tar\.lz4' | sort -t_ -k2 -n | tail -n 1)

if [ -n "$LATEST_SNAPSHOT" ]; then
  FULL_URL="${SNAPSHOT_URL}${LATEST_SNAPSHOT}"
  if curl -s --head "$FULL_URL" | head -n 1 | grep "200" > /dev/null; then
    curl "$FULL_URL" | lz4 -dc - | tar -xf - -C $HOME/.achilles
  else
    echo "Snapshot URL not accessible"
  fi
else
  echo "No snapshot found"
fi

➡️ Let’s get started

sudo systemctl restart achillesd
sudo journalctl -fu achillesd -o cat

➡️ Log Command

sudo journalctl -fu achillesd -o cat

➡️ Create wallet

achillesd keys add $ODISEO_WALLET

➡️ Import wallet

achillesd keys add $ODISEO_WALLET --recover

➡️ Create Validator

rm -rf /root/validator.json
cat > ./validator.json << EOF
{
	"pubkey": $(achillesd tendermint show-validator),
	"amount": "1000000uodis",
	"moniker": "Moniker-Name",
	"identity": "optional identity signature (ex. UPort or Keybase)",
	"website": "validator's (optional) website",
	"security": "validator's (optional) security contact email",
	"details": "validator's (optional) details",
	"commission-rate": "0.1",
	"commission-max-rate": "0.15",
	"commission-max-change-rate": "0.05",
	"min-self-delegation": "1"
}
EOF
achillesd tx staking create-validator ./validator.json --chain-id ithaca-1 --fees 0.25uodis --from=$ODISEO_WALLET -y

➡️ Delegate to Yourself

achillesd tx staking delegate $(achillesd keys show $ODISEO_WALLET --bech val -a) 1000000uodis --from $ODISEO_WALLET --chain-id ithaca-1 --fees 0.25uodis -y 

➡️ Edit Validator

achillesd tx staking edit-validator \
--chain-id ithaca-1 \
--commission-rate 0.05 \
--new-moniker "validator-name" \
--identity "" \
--details "" \
--website "" \
--security-contact "" \
--from $ODISEO_WALLET \
--node http://localhost:${ODISEO_PORT}657 \
--fees 0.25uodis \
-y

➡️ Complete deletion

cd $HOME
sudo systemctl stop achillesd
sudo systemctl disable achillesd
sudo rm -rf /etc/systemd/system/achillesd.service
sudo systemctl daemon-reload
sudo rm -f /usr/local/bin/achillesd
sudo rm -f $(which achillesd)
sudo rm -rf $HOME/.achilles
sed -i "/ODISEO_PORT_/d" $HOME/.bash_profile

➡️ Block check

local_height=$(achillesd status | jq -r .sync_info.latest_block_height); network_height=$(curl -s https://odiseo-testnet-rpc.mictonode.com/status | jq -r .result.sync_info.latest_block_height); blocks_left=$((network_height - local_height)); echo "Your node height: $local_height"; echo "MictoNode height: $network_height"; echo "Blocks left: $blocks_left"
  • Your node height - the current block of your node
  • Network height - the last block of the network
  • Blocks left - how many blocks your node has left to sync.