# Install Go (one command)if["$(go version)"!="go version go1.20.5 linux/amd64"];then\ver="1.20.5"&&\wget"https://golang.org/dl/go$ver.linux-amd64.tar.gz"&&\sudorm-rf/usr/local/go&&\sudotar-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">> $HOME/.bash_profile&&\source $HOME/.bash_profile;\figoversion# go version go1.20.5 linux/amd64
# Set the variables
# Come up with the name of your node and replace it instead <your_moniker>
EMPOWER_MONIKER=<your_moniker>
echo 'export EMPOWER_MONIKER='$EMPOWER_MONIKER >> $HOME/.bash_profile
echo "export EMPOWER_CHAIN_ID=circulus-1" >> $HOME/.bash_profile
echo "export EMPOWER_PORT=20" >> $HOME/.bash_profile
source $HOME/.bash_profile
# check whether the last command was executed
# Download binary files
cd $HOME
git clone https://github.com/EmpowerPlastic/empowerchain.git && cd empowerchain
git checkout v1.0.0-rc3
cd chain
make install
sudo cp $(which empowerd) /usr/local/bin/ && cd $HOME
empowerd version --long | grep -e version -e commit
# 1.0.0-rc3
# commit: b0de742c7ea925b0190cfd6fac72f4b443860283
# Initialize the node
empowerd init $EMPOWER_MONIKER --chain-id $EMPOWER_CHAIN_ID
# correct config (so we can no longer use the chain-id flag for every CLI command in client.toml)
empowerd config chain-id $EMPOWER_CHAIN_ID
# adjust if necessary keyring-backend в client.toml
empowerd config keyring-backend test
# Set the minimum price for gas
sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.025umpwr\"/" $HOME/.empowerchain/config/app.toml
# Add seeds/peers в config.toml
peers="b897014f22e932e461e7fc98353a57d642dbe16e@empower-testnet.nodejumper.io:32656,264f7ae64579a2d7fbb07c6ea6fed90898f4c406@139.59.58.78:26056,da9776ea1bb96e66545c9e271f21724b04548d4d@65.109.154.182:52656,e0e26c9e0c93769fcc6684da566709d0dffb5092@95.217.23.88:26656,3761b399ad83a851e2829ab2e29fff732003232b@68.183.124.35:26656,bd850329ddc098a05d73ed96c429e47e1750911f@65.21.232.160:656,9489bf20423193157975ebda4af69defeaf5b5a0@65.109.116.204:22356,bcde171f8be8b3069726608d1e1fdde367d2e191@65.109.82.112:20456,865ba084f3f576df38984ae2bbee046f834d38dd@35.239.75.43:16656,64af1729ec239e6ac31fb77f50950e81a0e95b13@172.93.110.154:28656,8a2dd7c4d01ff6a78e05734a938097b01f0df8c8@84.39.241.20:36656,db48aa6e227fcc3d3b921dfac0d3d0f6decf8338@212.90.121.106:26656,f95be62dddc6c3d962e229a19a8384892b2a2f64@95.217.160.106:15056,ef4e2705d08fe79172381de8507c1c72758bb441@65.21.82.203:60556,70e90f32a86db93ce97dc4f691244b9b2188fc5f@37.27.8.22:26656,50f3cb8b0f11e71af102c9d41abd183b2116eb6e@164.92.165.194:26656,9595954bb0f8703dbc9db54364faeaa5e779c495@85.239.236.13:15056,132dea83b3f0d899329c940f18466ab8e17f1cef@31.220.89.98:26656,4f77ebcaedbef250ba6d8d63c376f6b1eec31b04@109.236.92.76:17456,02e17aac82fae9fba479065669871861fc925400@5.161.86.216:12656,e855b3e36e9506695ffc39a180af8c0453928b7c@89.117.56.126:24356,95ea7999e3ecd3fb7fd73fae70b3b29a6af24c8d@46.4.5.45:17456,808a8eba7e272401795868ad0bbebb23d2bb7eb5@65.108.238.147:32656,f6162c0ee44669eeae9ffeee201d84de2d04adc1@167.235.180.97:17456,72fe41cd9bec8f1a7cdf88fc81001fc9c7ea49e2@49.13.3.215:15056,66fa8b854f03f3c218e5c3cb18f7f822d72f1fa2@213.133.99.244:26656,a42595cd22c9491a89386f83385398bdac65b16a@104.248.143.31:26656,619f818a1ad3cb100c24a24cd5f393459e526101@173.249.49.114:15056,2304a3a885a1c2ced7453a79c445979f425b821d@65.108.199.206:32656,9e4aba1835f3590da434558daa3b1baeddff41dc@184.174.37.152:35656,48ffb42208b80f9f9b8ee5e9f8d4e50ba5cfb5e9@38.242.129.109:15056,67da1cce2ced3531948395690c6feb8cd4ed81fd@65.108.231.238:32656,f2d9830865586f194f4437878f2e112c57caedf5@95.217.6.63:15056,304a2af3db879b52a8baf571e6ec7ff1b13de93c@65.108.250.118:15056,c89be50ba68fafe691b15e8833988cb79297dab2@185.209.230.127:15056,d5c47557c82a74a08b4638c9332377320291255f@85.239.234.218:26656,255502c571df61a8eeba9af57f57324ba65c57ff@65.21.141.82:26656,5e8a0ef0c941f7b68f45610cf280ccc1a208e6d0@65.109.33.48:24656,f05e7b521d8c779514d0c0dc5b886375d0805bed@54.39.128.229:26646,57aeb2ff8f976942ef3d4b6406b0d4eb1e62231f@5.161.103.120:26656,d90b17e15e891ee729b1608bccc654635502ee9a@143.198.195.2:26656,d2de4376a83e34300bf3946666a8b675f8a033b8@184.105.162.170:26656,1fcc636454412a3ada561b69399704e1d1e3be3a@149.102.131.176:15056,3fdbae8d720dfcdeadd631f46db06ba222515e96@65.109.89.35:26656,c1caa84f93f9e3bae30f51889ef6f4b588262fcf@65.108.72.233:42656,1d9a92feae6c392ca218b07175a602c996cd28b6@109.236.82.5:22056,8cd17dfb379be4b2de810ca98b8af541d699dc1f@5.161.184.204:26656,0835b028b7532599dd95fe97d1c01ea420b5bd0b@65.21.225.10:52656,22f43ae42bc61f3cc26af28ed545d40a6e4834ac@195.201.239.70:26656,17a2d8b6ab329e60eba16abc17eccb1342f49a04@85.10.197.4:50656,046d5f53f1c9c28a832da7b70e0e1eda24480d70@78.160.231.135:35656"
sed -i -e "s|^persistent_peers *=.*|persistent_peers = \"$peers\"|" $HOME/.empowerchain/config/config.toml
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.empowerchain/config/config.toml
seeds="c597ec01e412d6e0f62c6f5501224b7fb8393912@empower-testnet-seed.itrocket.net:16656"
sed -i.bak -e "s/^seeds =.*/seeds = \"$seeds\"/" $HOME/.empowerchain/config/config.toml
# Set up filter for "bad" peers
sed -i -e "s/^filter_peers *=.*/filter_peers = \"true\"/" $HOME/.empowerchain/config/config.toml
# Set up pruning
pruning="nothing"
pruning_keep_recent="100"
pruning_interval="50"
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.empowerchain/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.empowerchain/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.empowerchain/config/app.toml
# Check the logs again
journalctl -u empowerd -f -o cat
# Escape from logs ctrl+c
# Check the blocks
empowerd status 2>&1 | jq ."SyncInfo"."latest_block_height"
# Create wallet
empowerd keys add wallet
# If the wallet was already there, restore it
empowerd keys add wallet --recover
# Insert the seed phrase from your wallet
# If everything is correct, you will see your wallet data
# Save the wallet address
EMPOWER_ADDRESS=$(empowerd keys show wallet -a)
EMPOWER_VALOPER=$(empowerd keys show wallet --bech val -a)
echo "export EMPOWER_ADDRESS="${EMPOWER_ADDRESS} >> $HOME/.bash_profile
echo "export EMPOWER_VALOPER="${EMPOWER_VALOPER} >> $HOME/.bash_profile
source $HOME/.bash_profile
# Check the ballance
empowerd query bank balances $EMPOWER_ADDRESS