Other

You can change value CUSTOM_PORT=10

(you can use port 4-65353, except: 18, 22, 23, 53, 80 and 323) to check port that no used, check listened port and use another of it:

apt install sysstat -y
netstat -tunlp

(for Custom Port) set your Port first

PORT=
echo "export SOURCE=${CUSTOM_PORT}" >> $HOME/.bash_profile

Set Custom Ports

sed -i.bak -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:${PORT}658\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:${PORT}657\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:${PORT}060\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:${PORT}656\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":${PORT}660\"%" $HOME/.dymension/config/config.toml
sed -i.bak -e "s%^address = \"tcp://0.0.0.0:1317\"%address = \"tcp://0.0.0.0:${PORT}317\"%; s%^address = \":8080\"%address = \":${PORT}080\"%; s%^address = \"0.0.0.0:9090\"%address = \"0.0.0.0:${PORT}090\"%; s%^address = \"0.0.0.0:9091\"%address = \"0.0.0.0:${PORT}091\"%; s%^address = \"0.0.0.0:8545\"%address = \"0.0.0.0:${PORT}545\"%; s%^ws-address = \"0.0.0.0:8546\"%ws-address = \"0.0.0.0:${PORT}546\"%" $HOME/.dymension/config/app.toml

Enable default Indexing (kv)

sed -i -e 's|^indexer *=.*|indexer = "kv"|' $HOME/.dymension/config/config.toml

Disable Indexing

sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.dymension/config/config.toml

Reset chain data

dymd tendermint unsafe-reset-all --home $HOME/.dymension --keep-addr-book

Last updated