Skip to content

Instantly share code, notes, and snippets.

View khaihkd's full-sized avatar
💭
Hard working

Do Minh Khai khaihkd

💭
Hard working
View GitHub Profile
@khaihkd
khaihkd / pre-run.sh
Last active November 26, 2020 07:25
How to run a TOMO masternode by tomo binary
#!/usr/bin/env bash
VERSION=$(curl --silent https://api.github.com/repos/tomochain/tomochain/releases/latest | grep '"tag_name":' | cut -d'"' -f4)
wget https://github.com/tomochain/tomochain/releases/download/${VERSION}/tomo-linux-amd64
chmod +x tomo-linux-amd64 && mv tomo-linux-amd64 /usr/local/bin/tomo
if [ ! -f "mainnet.json" ]
then
wget https://raw.githubusercontent.com/tomochain/tomochain/master/genesis/mainnet.json
fi