MONIKER="YOUR_MONIKER_NAME"
sudo apt update && sudo apt upgrade -ysudo apt install curl build-essential git jq lz4 ncdu bashtop -y
cd $HOMEversion="1.22.5"wget "https://golang.org/dl/go$version.linux-amd64.tar.gz"sudo rm -rf /usr/local/gosudo tar -C /usr/local -xzf "go$version.linux-amd64.tar.gz"rm "go$version.linux-amd64.tar.gz"echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profilesource $HOME/.bash_profile
go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@v1.5.0
cd $HOMEcurl -LO https://github.com/empe-io/empe-chain-releases/raw/master/v0.2.2/emped_v0.2.2_linux_amd64.tar.gztar -xvf emped_v0.2.2_linux_amd64.tar.gzrm emped_v0.2.2_linux_amd64.tar.gzchmod +x empedsudo mv emped $HOME/go/binemped version --long | grep -e commit -e version
# Set node configurationemped config chain-id empe-testnet-2emped config keyring-backend fileemped config node tcp://localhost:12057 # Initialize nodeemped init $MONIKER --chain-id empe-testnet-2 # Download genesis and addrbookcurl -Ls https://snapshots.moonbridge.team/testnet/empeiria/genesis.json > $HOME/.empe-chain/config/genesis.jsoncurl -Ls https://snapshots.moonbridge.team/testnet/empeiria/addrbook.json > $HOME/.empe-chain/config/addrbook.json # Set seeds and peersSEEDS=""PEERS=""sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.empe-chain/config/config.toml # Setting minimum gas pricesed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.0001uempe\"|" $HOME/.empe-chain/config/app.toml # Setting pruningsed -i -e 's|^pruning *=.*|pruning = "custom"|' $HOME/.empe-chain/config/app.tomlsed -i -e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' $HOME/.empe-chain/config/app.tomlsed -i -e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' $HOME/.empe-chain/config/app.tomlsed -i -e 's|^pruning-interval *=.*|pruning-interval = "10"|' $HOME/.empe-chain/config/app.toml # Disable indexersed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.empe-chain/config/config.toml # Enable Prometheussed -i -e "s/prometheus = false/prometheus = true/" $HOME/.empe-chain/config/config.toml # Setting custom portssed -i -e "s%^proxy_app = \"tcp://120.0.0.1:26658\"%proxy_app = \"tcp://120.0.0.1:12058\"%; s%^laddr = \"tcp://120.0.0.1:26657\"%laddr = \"tcp://0.0.0.0:12057\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:12060\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:12056\"%; s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):12056\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":12066\"%" $HOME/.empe-chain/config/config.tomlsed -i -e "s%:1207%:12017%g; s%:8080%:12080%g; s%:9090%:12090%g; s%:9091%:12091%g; s%:8545%:12045%g; s%:8546%:12046%g; s%:6065%:12065%g" $HOME/.empe-chain/config/app.toml
mkdir -p $HOME/.empe-chain/cosmovisor/genesis/binmkdir -p $HOME/.empe-chain/cosmovisor/upgradescp $HOME/go/bin/emped $HOME/.empe-chain/cosmovisor/genesis/bin/
sudo tee /etc/systemd/system/emped.service > /dev/null << EOF[Unit]Description=Empeiria NodeAfter=network-online.target [Service]User=$USERExecStart=$(which cosmovisor) run startRestart=alwaysRestartSec=5LimitNOFILE=65535Environment="DAEMON_NAME=emped"Environment="DAEMON_HOME=$HOME/.empe-chain"Environment="UNSAFE_SKIP_BACKUP=true"Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"Environment="DAEMON_RESTART_AFTER_UPGRADE=true" [Install]WantedBy=multi-user.targetEOFsudo systemctl daemon-reloadsudo systemctl enable emped
curl -o - -L https://snapshots.moonbridge.team/testnet/empeiria/snapshot_latest.tar.lz4 | lz4 -dc - | tar -x -C $HOME/.empe-chain[[ -f $HOME/.empe-chain/data/upgrade-info.json ]] && cp $HOME/.empe-chain/data/upgrade-info.json $HOME/.empe-chain/cosmovisor/genesis/upgrade-info.json
sudo systemctl start emped && sudo journalctl -u emped -f --no-hostname -o cat
emped keys add wallet
emped q bank balances $(emped keys show wallet -a)
emped status | jq .SyncInfo.catching_up
emped tx staking create-validator \ --amount 1000000uempe \ --pubkey $(emped tendermint show-validator) \ --moniker "YOUR_MONIKER_NAME" \ --identity "YOUR_KEYBASE_ID" \ --details "YOUR_DETAILS" \ --website "YOUR_WEBSITE_URL" \ --security-contact "YOUR_EMAIL_ADDRESS" \ --chain-id empe-testnet-2 \ --commission-rate 0.10 \ --commission-max-rate 0.20 \ --commission-max-change-rate 0.01 \ --min-self-delegation 1 \ --from wallet \ --gas-adjustment 1.4 \ --gas auto \ --fees=20uempe \ -y
sudo systemctl stop empedsudo systemctl disable empedsudo rm -rf /etc/systemd/system/emped.servicesudo systemctl daemon-reloadsudo rm -f $(which emped)sudo rm -rf $HOME/.empe-chainsudo rm -rf $HOME/empe-chain