Edit Configuration Node

Edit Configuration Blockchain

Running in user : salinem

Set Minimum Gas Price

sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"10000000000000mpx \"/" $HOME/.mineplex-chain/config/app.toml

Enable Prometheus Matrics

sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.mineplex-chain/config/config.toml

Edit Port Node

PROXY_APP="26510" #Example
RPC="26710" #Example
PROF_RPC="2110" #Example
P2P="26610" #Example
METRICS="26810" #Example
sed -i.bak -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:${PROXY_APP}\"%" $HOME/.mineplex-chain/config/config.toml 
sed -i.bak -e "s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:${RPC}\"%" $HOME/.mineplex-chain/config/config.toml 
sed -i.bak -e "s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:${PROF_RPC}\"%" $HOME/.mineplex-chain/config/config.toml 
sed -i.bak -e "s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:${P2P}\"%" $HOME/.mineplex-chain/config/config.toml 
sed -i.bak -e "s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":${METRICS}\"%" $HOME/.mineplex-chain/config/config.toml

Edit Port App

API="2210" #Example
GRPC="2310" #Example
WEBGRPC="2410" #Example
sed -i.bak -e "s%^address = \"tcp://0.0.0.0:1317\"%address = \"tcp://0.0.0.0:${API}\"%" $HOME/.mineplex-chain/config/app.toml
sed -i.bak -e "s%^address = \"0.0.0.0:9090\"%address = \"0.0.0.0:${GRPC}\"%" $HOME/.mineplex-chain/config/app.toml
sed -i.bak -e "s%^address = \"0.0.0.0:9091\"%address = \"0.0.0.0:${WEBGRPC}\"%" $HOME/.mineplex-chain/config/app.toml

Edit Peers

Peers Seed



seeds=""
sed -i.bak -e "s/^seeds =.*/seeds = \"$seeds\"/" ${HOME}/.mineplex-chain/config/config.toml

Peers Node

peers=""
sed -i 's|^persistent_peers *=.*|persistent_peers = "'$peers'"|' ${HOME}/.mineplex-chain/config/config.toml

Fast Sync

Make sure you have parameter in $HOME/.mineplex-chain/config/config.toml

fast_sync = true
version = "v0"

Last updated