June 27, 2022
Another-1
Vdsina - 10% cкидка на пополнение (пополнять можно криптой).
Hetzner - 30$ за регистрацию (можно абузить с разных акков).
sudo apt update && sudo apt upgrade -y
sudo apt install curl build-essential git wget jq make gcc tmux -y
ver="1.18.2"
cd $HOME
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"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile
source ~/.bash_profile
go version
git clone https://github.com/notional-labs/anone.git cd anone git checkout testnet-1.0.3 make install anoned version
anoned config chain-id $ANONE_CHAIN_ID anoned config keyring-backend test
anoned init $NODENAME --chain-id $ANONE_CHAIN_ID
wget -O ~/.anone/config/genesis.json https://raw.githubusercontent.com/notional-labs/anone/master/networks/testnet-1/genesis.json
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0uan1\"/" $HOME/.anone/config/app.toml
SEEDS="[email protected]:2280,[email protected]:2280,[email protected]:2280" PEERS="[email protected]:2280,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656" sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.anone/config/config.toml
indexer="null" sed -i -e "s/^indexer *=.*/indexer = \"$indexer\"/" $HOME/.anone/config/config.toml
sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.anone/config/config.toml
pruning="custom" pruning_keep_recent="100" pruning_keep_every="0" pruning_interval="50" sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.anone/config/app.toml sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.anone/config/app.toml sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.anone/config/app.toml sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.anone/config/app.toml
anoned unsafe-reset-all
sudo tee /etc/systemd/system/anoned.service > /dev/null <<EOF [Unit] Description=anone After=network-online.target [Service] User=$USER ExecStart=$(which anoned) start Restart=on-failure RestartSec=3 LimitNOFILE=65535 [Install] WantedBy=multi-user.target EOF
sudo systemctl daemon-reload sudo systemctl enable anoned sudo systemctl restart anoned
Посмотреть логи и синхронизацию
journalctl -fu anoned -o cat
anoned status 2>&1 | jq .SyncInfo
anoned keys add НАЗВАНИЕ_КОШЕЛЬКА
anoned tx staking create-validator \ --amount=1500000000uan1 \ --from $WALLET \ --commission-max-change-rate="0.01" \ --commission-max-rate="0.20" \ --commission-rate="0.05" \ --min-self-delegation=1 \ --pubkey=$(anoned tendermint show-validator) \ --moniker $NODENAME \ --chain-id $ANONE_CHAIN_ID \ --gas 200000 \ --fees 250000uan1 \ --keyring-backend os \