Search
Duplicate
Try Notion
👷‍♂️
Build evmosd
We are going to build the evmosd binary locally so we are able to rebuild it there is a network upgrade.
Make sure that go is installed:
go version
Bash
Clone the evmos repo and switch to version 9.1.0:
git clone https://github.com/hanchon/evmos cd evmos git checkout v9.1.0
Bash
Note: we are cloning the from hanchon instead of evmos so we can push tags an build our upgrades without breaking anything on the main repo
Build evmosd: (This can take up to 10minutes, see OPTIONAL)
screen -S evmos make # Leave screen with control + a + d , because it takes 10min to build -> go to OPTIONAL cd build ./evmosd version # 9.1.0
Bash
Optional
To avoid waiting 10minutes for evmosd to build, we are going to leave the building process running in a screen , so when we need to rebuild the binary for the upgrade it’s going to take less that 1 minute.
To advance to next step we are going to download an already compiled evmosd binary.
We need to go to the release page in the evmos Github’s repo and look for the amd64 version.
Right click on the link Copy Link Address will get you the download link for the evmos9.1.0 binary, then we can run wget to download the file:
cd wget https://github.com/evmos/evmos/releases/download/v9.1.0/evmos_9.1.0_Linux_amd64.tar.gz
Bash
The file is compressed so we need to run tar before being able to execute the binary.
tar xvf evmos_9.1.0_Linux_amd64.tar.gz
Bash
Let’s move the evmosd binary to our HOME directory so it’s easier to use it:
mv ~/bin/evmosd ~/
Bash
Try the evmosd binary:
~/evmosd version # 9.1.0
Bash
Finally let’s remove all the other unnecessary files:
rm -rf evmos_9.1.0_Linux_amd64.tar.gz bin LICENSE README.md CHANGELOG.md
Bash