You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cd~
VER="1.21.3"# Make sure that this version does not broke any other apps you run!
wget "https://golang.org/dl/go$VER.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$VER.linux-amd64.tar.gz"
rm "go$VER.linux-amd64.tar.gz"
[ !-f~/.bash_profile ] && touch ~/.bash_profile
echo"export PATH=$PATH:/usr/local/go/bin:~/go/bin">>~/.bash_profile
source$HOME/.bash_profile
[ !-d~/go/bin ] && mkdir -p ~/go/bin
sed -i.bak -e "s%:1317%:${OG_PORT}317%g;s%:8080%:${OG_PORT}080%g;s%:9090%:${OG_PORT}090%g;s%:9091%:${OG_PORT}091%g;s%:8545%:${OG_PORT}545%g;s%:8546%:${OG_PORT}546%g;s%:6065%:${OG_PORT}065%g"$HOME/.0gchain/config/app.toml
Updating ports in config.toml
sed -i.bak -e "s%:26658%:${OG_PORT}658%g;s%:26657%:${OG_PORT}657%g;s%:6060%:${OG_PORT}060%g;s%:26656%:${OG_PORT}656%g;s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${OG_PORT}656\"%;s%:26660%:${OG_PORT}660%g"$HOME/.0gchain/config/config.toml
Configuring pruning settings
sed -i -e "s/^pruning *=.*/pruning = \"custom\"/"$HOME/.0gchain/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/"$HOME/.0gchain/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"50\"/"$HOME/.0gchain/config/app.toml
Setting gas and other configurations
sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "0ua0gi"|g'$HOME/.0gchain/config/app.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/"$HOME/.0gchain/config/config.toml