This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo systemctl stop evmosd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo systemctl daemon-reload && sudo systemctl enable evmosd && sudo systemctl restart evmosd | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
evmosd tx slashing unjail --from=$EVMS_WLLT --chain-id=$EVMS_CHN | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
evmosd q staking validators -o json --limit=2000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' \ | |
| jq -r '.tokens + " - " + .description.moniker' | sort -gr | nl | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
OlderNewer