Installation
Auto install
source <(curl -s https://snapshot.nodevism.com/testnet/empeiria/autoinstall.sh)
Install Dependencies
sudo apt update && sudo apt upgrade -y
sudo apt install -y git gcc make unzip jq
Install GO if needed
ver="1.22.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
Sett Vars
change MONIKER="Moniker"" with your own moniker and change EMPED_PORT="14"" to your own port
echo "export WALLET="wallet"" >> $HOME/.bash_profile
echo "export MONIKER="Moniker"" >> $HOME/.bash_profile
echo "export EMPED_CHAIN_ID="empe-testnet-2"" >> $HOME/.bash_profile
echo "export EMPED_PORT="14"" >> $HOME/.bash_profile
source $HOME/.bash_profile
Install Binary
cd $HOME
curl -LO https://github.com/empe-io/empe-chain-releases/raw/master/v0.3.0/emped_linux_amd64.tar.gz
tar -xvf emped_linux_amd64.tar.gz
rm -rf emped_v0.3.0_linux_amd64.tar.gz
chmod +x emped
sudo mv emped ~/go/bin
Initialize Node
emped init $MONIKER --chain-id empe-testnet-2
emped config chain-id $EMPED_CHAIN_ID
emped config keyring-backend os
emped config node tcp://localhost:${EMPED_PORT}657
Download Genesis and Addrbook
curl -Ls "https://snapshot.nodevism.com/testnet/empeiria/genesis.json" $HOME/.empe-chain/config/genesis.json
curl -Ls "https://snapshot.nodevism.com/testnet/empeiria/addrbook.json" $HOME/.empe-chain/config/addrbook.json
Configure seed
sed -i -e 's|^seeds *=.*|seeds = "[email protected]:23656' $HOME/.empe-chain/config/config.toml
Configure Pruning
sed -i \
-e 's|^pruning *=.*|pruning = "custom"|' \
-e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
-e 's|^pruning-interval *=.*|pruning-interval = "17"|' \
$HOME/.empe-chain/config/app.toml
Sett gas price enable prometheus and disable indexing
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.0001uempe\"|" $HOME/.empe-chain/config/app.toml
sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.empe-chain/config/config.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.empe-chain/config/config.toml
Costumize port in app.toml
sed -i.bak -e "s%:1317%:${EMPED_PORT}317%g;
s%:8080%:${EMPED_PORT}080%g;
s%:9090%:${EMPED_PORT}090%g;
s%:9091%:${EMPED_PORT}091%g;
s%:8545%:${EMPED_PORT}545%g;
s%:8546%:${EMPED_PORT}546%g;
s%:6065%:${EMPED_PORT}065%g" $HOME/.empe-chain/config/app.toml
Costumize port in config.toml
sed -i.bak -e "s%:26658%:${EMPED_PORT}658%g;
s%:26657%:${EMPED_PORT}657%g;
s%:6060%:${EMPED_PORT}060%g;
s%:26656%:${EMPED_PORT}656%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${EMPED_PORT}656\"%;
s%:26660%:${EMPED_PORT}660%g" $HOME/.empe-chain/config/config.toml
Create service
sudo tee /etc/systemd/system/emped.service > /dev/null <<EOF
[Unit]
Description=Empeiria node
After=network-online.target
[Service]
User=$USER
WorkingDirectory=$HOME/.empe-chain
ExecStart=$(which emped) start --home $HOME/.empe-chain
Restart=on-failure
RestartSec=5
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
Download Snapshot
curl "https://snapshot.nodevism.com/testnet/empeiria/empeiria-snapshot.tar.lz4" | lz4 -dc - | tar -xf - -C "$HOME/.empe-chain"
Enable Service and start node
sudo systemctl daemon-reload
sudo systemctl enable emped.service
sudo systemctl restart emped.service && sudo journalctl -u emped.service -f --no-hostname -o cat
Last updated