🟢Empeiria

Prerequisites

  1. Hardware Requirements:

    • Operating System: Ubuntu 18.04 or later LTS.

    • CPU: 6 cores.

    • RAM: 32GB.

    • Storage: 240GB SSD.

    • Network: Allow incoming connections on port 26656, use a static IP address, and have root access.

  2. Software Requirements:

    • Install Go (version ≥ 1.20).

    • Ensure dependencies like Git, curl, and wget are installed.


Installation Steps

1. Set Environment Variables

export CHAINID=empe-testnet-2
export MONIKER=<your-moniker>

2. Initialize the Node

emped init $MONIKER --chain-id $CHAINID
rm -rf ~/.empe-chain/config/genesis.json

3. Download and Configure Genesis File

git clone https://github.com/empe-io/empe-chains.git
cd empe-chains/testnet-2/
cp genesis.json ~/.empe-chain/config/

4. Update Configuration Files

  • Set Persistent Peers:

sed -e "s|persistent_peers = \".*\"|persistent_peers = \"$(cat .data | grep -oP 'Persistent peers\s+\K\S+')\"|g" ~/.empe-chain/config/config.toml > ~/.empe-chain/config/config.toml.tmp
mv ~/.empe-chain/config/config.toml.tmp ~/.empe-chain/config/config.toml
  • Set Minimum Gas Price:

sed -e "s|minimum-gas-prices = \".*\"|minimum-gas-prices = \"$(cat .data | grep -oP 'Minimum Gas Price\s+\K\S+')\"|g" ~/.empe-chain/config/app.toml > ~/.empe-chain/config/app.toml.tmp
mv ~/.empe-chain/config/app.toml.tmp ~/.empe-chain/config/app.toml
  • Update External Address:

PUB_IP=$(curl -s -4 icanhazip.com)
sed -e "s|external_address = \".*\"|external_address = \"$PUB_IP:26656\"|g" ~/.empe-chain/config/config.toml > ~/.empe-chain/config/config.toml.tmp
mv ~/.empe-chain/config/config.toml.tmp ~/.empe-chain/config/config.toml

Running with Cosmovisor (Optional)

  1. Install Cosmovisor:

go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@latest
  1. Set Directory Structure:

export DAEMON_NAME=emped
export DAEMON_HOME=$HOME/.empe-chain/
mkdir -p $DAEMON_HOME/cosmovisor/genesis/bin
mkdir -p $DAEMON_HOME/cosmovisor/upgrades
cp ~/go/bin/emped $DAEMON_HOME/cosmovisor/genesis/bin
  1. Setup Systemd: Create a service file:

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

[Service]
User=$USER
ExecStart=/home/$USER/go/bin/cosmovisor run start
Restart=always
RestartSec=3
LimitNOFILE=4096
Environment="DAEMON_NAME=emped"
Environment="DAEMON_HOME=/home/$USER/.empe-chain"
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"
Environment="DAEMON_RESTART_AFTER_UPGRADE=true"

[Install]
WantedBy=multi-user.target
EOF

Enable and start the service:

sudo systemctl enable cosmovisor
sudo systemctl start cosmovisor
sudo systemctl status cosmovisor

For further details and updates, refer to Empeiria's official documentation.

Last updated