Welcome to validator AlxVoy ⚡ ANODE.TEAM



Source Chain

Links

Mainnet service

Explorers

Sync

RPC & API

Peers and seeds

Genesis and addrbook

Wasm

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

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

Installation

Software Requirements

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

Install last binary

git clone https://github.com/Source-Protocol-Cosmos/source
cd source
git checkout v3.0.1
make install

Init the config files

sourced init <moniker> --chain-id source-1
sourced config chain-id source-1

Create a wallet

sourced keys add <wallet_name>

Download genesis and addrbook

curl https://anode.team/Source/main/genesis.json > ~/.source/config/genesis.json
curl https://anode.team/Source/main/addrbook.json > ~/.source/config/addrbook.json

Add peers, seed

SEEDS=""
PEERS="96045001b662ab30d951c88c4f4227658cc6d1b1@174.138.176.146:26656"
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.source/config/config.toml

Add min gas

sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.25usource\"/" $HOME/.source/config/app.toml

Create the service file

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

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

[Install]
WantedBy=multi-user.target
EOF

Load service and start

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

Create Validator

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

State-Sync

SNAP_RPC=https://source.rpc.m.anode.team:443 && \
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 1000)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash) && \
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
wget https://anode.team/unsafe-reset-all.sh && chmod u+x unsafe-reset-all.sh && ./unsafe-reset-all.sh sourced .source
peers="96045001b662ab30d951c88c4f4227658cc6d1b1@174.138.176.146:26656"
sed -i.bak -e  "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.source/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/.source/config/config.toml
curl -o - -L https://anode.team/Source/main/anode.team_source_wasm.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.source/data/
sudo systemctl restart sourced && journalctl -fu sourced -o cat

Testnet service

Explorers

Sync

RPC & API

Peers and seeds

Genesis and addrbook

Wasm

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

wget -O Source.sh https://anode.team/Source/test/Source.sh && chmod u+x Source.sh && ./Source.sh

Installation

Software Requirements

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

Install last binary

git clone https://github.com/Source-Protocol-Cosmos/source
cd source
git checkout v3.0.1
make install

Init the config files

sourced init <moniker> --chain-id sourcetest-1
sourced config chain-id sourcetest-1

Create a wallet

sourced keys add <wallet_name>

Download genesis and addrbook

curl https://anode.team/Source/test/genesis.json > ~/.source/config/genesis.json
curl https://anode.team/Source/test/addrbook.json > ~/.source/config/addrbook.json

Add peers, seed

SEEDS=""
PEERS="636c7206a1a9a817768766a1f243d27398159028@144.76.97.251:36656"
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.source/config/config.toml

Add min gas

sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.25usource\"/" $HOME/.source/config/app.toml

Create the service file

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

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

[Install]
WantedBy=multi-user.target
EOF

Load service and start

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

Create Validator

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

State-Sync

SNAP_RPC=https://source.rpc.t.anode.team:443 && \
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 1000)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash) && \
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
wget https://anode.team/unsafe-reset-all.sh && chmod u+x unsafe-reset-all.sh && ./unsafe-reset-all.sh sourced .source
peers="636c7206a1a9a817768766a1f243d27398159028@144.76.97.251:36656"
sed -i.bak -e  "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.source/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/.source/config/config.toml
curl -o - -L https://anode.team/Source/test/anode.team_source_wasm.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.source/data/
sudo systemctl restart sourced && journalctl -fu sourced -o cat