Skip to content

Instantly share code, notes, and snippets.

View asverty's full-sized avatar

alekh_w asverty

View GitHub Profile
#Update and upgrade your Linux in one cmd
sudo apt-get update && sudo apt-get upgrade -y
#Install make and gcc in one cmd
sudo apt install make && sudo apt install gcc
#Install Go 1.17.1
cd
wget https://golang.org/dl/go1.17.1.linux-amd64.tar.gz
sudo rm -rv /usr/local/go
#Setting variables (you can put your own instead mine: $EVMS_NDNM, $EVMS_WLLT etc)
#Setting chain variable (Arsia Mons)
EVMS_CHN=evmos_9000-1
#Setting chain variable (Olympus Mons)
EVMS_CHN=evmos_9000-2
#Setting your node name variable
EVMS_NDNM="hodl"
#Init my second node
evmosd init $EVMS_NDNM --chain-id $EVMS_CHN
evmosd config chain-id evmos_9000-1
#Or
#Init my second node for chain evmos_9000-2
evmosd init $EVMS_NDNM --chain-id $EVMS_CHN
evmosd config chain-id evmos_9000-1
#Download and check genesis
#Start service in one cmd
sudo systemctl daemon-reload && sudo systemctl enable evmosd && sudo systemctl restart evmosd
#Check logs
journalctl -u evmosd -f
#And wait for full sync and message: "catching_up": false
curl localhost:26657/status
#Or use Let's node script for ru localization and pretty output by using evmos_node_info cmd
sudo systemctl stop evmosd
sudo systemctl daemon-reload && sudo systemctl enable evmosd && sudo systemctl restart evmosd
#
evmosd tx slashing unjail --from=$EVMS_WLLT --chain-id=$EVMS_CHN
#
evmosd q staking validators -o json --limit=2000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' \
| jq -r '.tokens + " - " + .description.moniker' | sort -gr | nl
#Create service file in one cmd
sudo tee /etc/systemd/system/evmosd.service > /dev/null <<EOF
[Unit]
Description=Evmos
After=network.target
[Service]
Type=simple
User=$USER
WorkingDirectory=/usr/local/bin
ExecStart=/root/go/bin/evmosd start
Optimizing size of evmos database
---------------------------------
Blockchain database tends to grow over time, depending e.g. on block
speed and transaction amount. For evmos, we are talking about close to
100GB of disk usage in first two weeks.
There are few configurations that can be done to reduce the required
disk usage quite significantly. Some of these changes take full effect
only when you do the configuration and start syncing from start with