Setup
Install dependencies:
Copy
sudo apt update && sudo apt upgrade -y
sudo apt install curl git wget htop tmux build-essential jq make lz4 gcc unzip -y
Install GO: (amd64 - x86)
Copy
rm -rf $HOME/go
sudo rm -rf /usr/local/go
cd $HOME
curl https://dl.google.com/go/go1.22.2.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf -
cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source $HOME/.profile
go version
Download binary Empeiria:
Copy
cd $HOME
curl -LO https://github.com/empe-io/empe-chain-releases/raw/master/v0.1.0/emped_linux_amd64.tar.gz
tar -xvf emped_linux_amd64.tar.gz
chmod +x emped
sudo mv emped /usr/local/bin
Set chain and Name Empeiria: Change <Change-Name>
Copy
emped init <Change-Name> --chain-id empe-testnet-2
Custom Port: (Option)
Copy
emped config node tcp://localhost:39657
sed -i -e "s%:1317%:3917%; s%:8080%:39580%; s%:9090%:39590%; s%:9091%:39591%; s%:8545%:3945%; s%:8546%:39546%; s%:6065%:39565%" $HOME/.symphonyd/config/app.toml
sed -i -e "s%:26658%:39658%; s%:26657%:39657%; s%:6060%:3960%; s%:26656%:39656%; s%:26660%:39661%" $HOME/.symphonyd/config/config.toml
Set min gas:
Copy
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = "0.001uempe"/" $HOME/.empe-chain/config/app.toml
Set Pruning: (Option)
Copy
pruning="custom"
pruning_keep_recent="100"
pruning_keep_every="0"
pruning_interval="10"
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.empe-chain/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.empe-chain/config/app.toml
sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.empe-chain/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.empe-chain/config/app.toml
Set indexing: (Option)
Copy
sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.symphonyd/config/config.toml
Download Genesis & addressbook:
Copy
wget -O $HOME/.empe-chain/config/genesis.json https://node39.top/testnet/empeiria/genesis.json
wget -O $HOME/.empe-chain/config/addrbook.json https://node39.top/testnet/empeiria/addrbook.json
Peers:
Copy
peers="[email protected]:43656,[email protected]:26656,[email protected]:28656,[email protected]:28656,[email protected]:26656,[email protected]:36656,[email protected]:49656,[email protected]:28656,[email protected]:28656,[email protected]:26656"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.symphonyd/config/config.toml
Create Service:
Copy
sudo tee /etc/systemd/system/emped.service > /dev/null <<EOF
[Unit]
Description=empe-testnet
After=network-online.target
[Service]
User=$USER
ExecStart=$(which emped) start --home $HOME/.empe-chain
Restart=on-failure
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable emped
Check sync: (False -> Done)
Copy
emped status 2>&1 | jq .SyncInfo.catching_up
Create Validator:
Copy
emped tx staking create-validator \
--amount=1000000uempe \
--pubkey=$(emped tendermint show-validator) \
--moniker=Node39.TOP Guide \
--identity="xxxxxxxxx" \
--details="xxxxxxxxx" \
--website="xxxxxxxxx" \
--chain-id=empe-testnet-2 \
--commission-rate=0.10 \
--commission-max-rate=0.20 \
--commission-max-change-rate=0.01 \
--min-self-delegation=1000 \
--from=wallet \
--gas-adjustment=1.5 \
--gas="auto" \
--gas-prices=1uempe\
-y
Edit Validator:
Copy
emped tx staking edit-validator \
--new-moniker="Node39.TOP Guide" \
--identity="xxxxxxxxx" \
--details="xxxxxxxxx" \
--chain-id=empe-testnet-2 \
--commission-rate=0.1 \
--from=wallet \
--gas-prices=1uempe \
--gas-adjustment=1.5 \
--gas=auto \
-y
Last updated