Installation
Chain ID | Latest Version Tag | Custom Port |
---|---|---|
ignite_186-1 | main | 58 |
Validator Name Configuration
To configure your validator name, replace the placeholder owlstake with your desired validator name.
MONIKER="owlstake"
Dependency Installation Processβ
System Update and Build Tool Installationβ
sudo apt -q update
sudo apt -qy install curl git jq lz4 build-essential
sudo apt -qy upgrade
Install Goβ
sudo rm -rf /usr/local/go
curl -Ls https://go.dev/dl/go1.21.13.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
eval $(echo 'export PATH=$PATH:/usr/local/go/bin' | sudo tee /etc/profile.d/golang.sh)
eval $(echo 'export PATH=$PATH:$HOME/go/bin' | tee -a $HOME/.profile)
Download and build binariesβ
# download binary
cd $HOME
wget -O pellcored https://github.com/0xPellNetwork/network-config/releases/download/v1.2.1/pellcored-v1.2.1-linux-amd64
chmod +x pellcored
mv pellcored ~/go/bin/
WASMVM_VERSION=v2.1.2
export LD_LIBRARY_PATH=~/.pellcored/lib
mkdir -p $LD_LIBRARY_PATH
wget "https://github.com/CosmWasm/wasmvm/releases/download/$WASMVM_VERSION/libwasmvm.$(uname -m).so" -O "$LD_LIBRARY_PATH/libwasmvm.$(uname -m).so"
echo "export LD_LIBRARY_PATH=$HOME/.pellcored/lib:$LD_LIBRARY_PATH" >> $HOME/.bash_profile
source ~/.bash_profile
# Prepare binaries for Cosmovisor (Optional)
mkdir -p $HOME/.pellcored/cosmovisor/genesis/bin
mv pellcored $HOME/.pellcored/cosmovisor/genesis/bin/
# Create application symlinks (Optional)
sudo ln -s $HOME/.pellcored/cosmovisor/genesis $HOME/.pellcored/cosmovisor/current -f
sudo ln -s $HOME/.pellcored/cosmovisor/current/bin/pellcored /usr/local/bin/pellcored -f
Install Cosmovisor and create a service (Option 1)β
# Download and install Cosmovisor
go install cosmossdk.io/tools/cosmovisor/cmd/[email protected]
# Create service
sudo tee /etc/systemd/system/pellcored.service > /dev/null << EOF
[Unit]
Description=pell node service
After=network-online.target
[Service]
User=$USER
ExecStart=$(which cosmovisor) run start
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
Environment="DAEMON_HOME=$HOME/.pellcored"
Environment="DAEMON_NAME=pellcored"
Environment="UNSAFE_SKIP_BACKUP=true"
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:$HOME/.pellcored/cosmovisor/current/bin"
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable pellcored
Create a standard service (Option 2)β
# Create service
sudo tee /etc/systemd/system/pellcored.service > /dev/null << EOF
[Unit]
Description=pell node service
After=network-online.target
[Service]
Type=simple
User=$USER
ExecStart=$(which pellcored) start
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable pellcored
Initialize the nodeβ
# Set node configuration
pellcored config chain-id ignite_186-1
pellcored config keyring-backend file
### (Optional)
pellcored config node tcp://localhost:5857
# Initialize the node
pellcored init $MONIKER --chain-id ignite_186-1
# Download genesis and addrbook
curl -Ls https://snapshots.owlstake.com/ignite_186-1/genesis.json > $HOME/.pellcored/config/genesis.json
curl -Ls https://snapshots.owlstake.com/ignite_186-1/addrbook.json > $HOME/.pellcored/config/addrbook.json
# Add seeds
sed -i -e "s|^seeds *=.*|seeds = \"[email protected]:58656\"|" $HOME/.pellcored/config/config.toml
# Set minimum gas price
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.002apell\"|" $HOME/.pellcored/config/app.toml
# Set pruning
sed -i \
-e 's|^pruning *=.*|pruning = "custom"|' \
-e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
-e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' \
-e 's|^pruning-interval *=.*|pruning-interval = "19"|' \
$HOME/.pellcored/config/app.toml
# Set custom ports (Optional)
sed -i -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:5858\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:5857\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:5860\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:5856\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":5866\"%" $HOME/.pellcored/config/config.toml
sed -i -e "s%^address = \"tcp://0.0.0.0:1317\"%address = \"tcp://0.0.0.0:5817\"%; s%^address = \":8080\"%address = \":5880\"%; s%^address = \"0.0.0.0:9090\"%address = \"0.0.0.0:5890\"%; s%^address = \"0.0.0.0:9091\"%address = \"0.0.0.0:5891\"%; s%:8545%:5845%; s%:8546%:5846%; s%:6065%:5865%" $HOME/.pellcored/config/app.toml
Download latest chain snapshotβ
curl -L https://snapshots.owlstake.com/ignite_186-1/snapshot_latest.tar.lz4 | tar -I lz4 -xf - -C $HOME/.pellcored
[[ -f $HOME/.pellcored/data/upgrade-info.json ]] && cp $HOME/.pellcored/data/upgrade-info.json $HOME/.pellcored/cosmovisor/genesis/upgrade-info.json
Start service and check the logsβ
sudo systemctl start pellcored && sudo journalctl -u pellcored -f --no-hostname -o cat