Welcome to validator AlxVoy ⚡ ANODE.TEAM



Arable

Links

Mainnet service

Explorers

Sync

RPC & API

Peers and seeds

Genesis and addrbook

Service script (Install, State-Sync, Snapshot, Delete)

wget -O Arable.sh https://anode.team/Arable/main/Arable.sh && chmod u+x Arable.sh && ./Arable.sh

Installation

Hardware Requirements

  • Memory 32GB
  • CPUs 4 Cores (modern CPU's)
  • Disk 1TB of storage (SSD or NVME)

Software Requirements

  • Prerequisite: go1.18.5+ required. ref
  • Prerequisite: git. ref

Install last binary

git clone https://github.com/ArableProtocol/acrechain
cd acrechain
git checkout v1.1.1
make install

Init the config files

acred init <moniker> --chain-id acre_9052-1
acred config chain-id acre_9052-1

Create a wallet

acred keys add <wallet_name>

Download genesis and addrbook

curl https://anode.team/Arable/main/genesis.json > ~/.acred/config/genesis.json
curl https://anode.team/Arable/main/addrbook.json > ~/.acred/config/addrbook.json

Add peers, seed

SEEDS=""
PEERS="e2d029c95a3476a23bad36f98b316b6d04b26001@49.12.33.189:36656"
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.acred/config/config.toml

Add min gas

sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0aacre\"/" $HOME/.acred/config/app.toml

Create the service file

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

[Service]
User=$USER
ExecStart=$(which acred) start
Restart=always
RestartSec=3
LimitNOFILE=4096

[Install]
WantedBy=multi-user.target
EOF

Load service and start

sudo systemctl daemon-reload && sudo systemctl enable acred
sudo systemctl restart acred && journalctl -fu acred -o cat

Create Validator

acred tx staking create-validator \
  --amount=1000000aacre \
  --pubkey=$(acred tendermint show-validator) \
  --moniker="<moniker>" \
  --identity="<identity>" \
  --website="<website>" \
  --details="<details>" \
  --security-contact="<contact>" \
  --chain-id="acre_9052-1" \
  --commission-rate="0.10" \
  --commission-max-rate="0.20" \
  --commission-max-change-rate="0.01" \
  --min-self-delegation="1" \
  --fees="0aacre" \
  --gas=300000 \
  --from=<wallet_name>

State-Sync

SNAP_RPC=https://arable.rpc.m.anode.team:443 && \
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 2000)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash) && \
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
sudo systemctl stop acred && acred tendermint unsafe-reset-all --home $HOME/.acred --keep-addr-book
peers="e8d03dd64cdd5658167d0b1913c9fd1f05c80d9a@144.76.97.251:29966"
sed -i.bak -e  "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.acred/config/config.toml
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"| ; \
s|^(seeds[[:space:]]+=[[:space:]]+).*$|\1\"\"|" $HOME/.acred/config/config.toml
sudo systemctl restart acred && journalctl -fu acred -o cat