$ dig +short myip.opendns.com @resolver1.opendns.com79467946,9501sh
$ wget https://github.com/DOSNetwork/core/releases/download/v1.0-beta.23/config.json
$ wget https://github.com/DOSNetwork/core/releases/download/v1.0-beta.23/dos.sh
$ sudo chmod +x dos.shsh
$ mkdir vault
$ cp oldKeyStore vault/sh
$ ./dos.sh startsh
$ ./dos.sh statussh
$ ./dos.sh stopsh
$ ./dos.sh logInstall Go and setup golang workingspace like below:
sh
$ sudo apt-get install golang
$ sudo apt-get install go-dep
$ sudo apt-get install build-essential
Open ~/.bashrc and set $GOPATH and $PATH environmental variables:
sh
$ vim ~/.bashrc
export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
$ source ~/.bashrc
Download source code:
sh
$ mkdir -p $GOPATH/src/github.com/DOSNetwork
$ cd $GOPATH/src/github.com/DOSNetwork && git clone https://github.com/DOSNetwork/core.git
$ cd core
$ git checkout v1.0-beta.20
Build:
$ make vendor - to prepare dependencies for building $ make - to build release version client
Run:
sh
$ ./dos.sh start
Dev tips:
$ go fmt ./... to reformat go source code.$ golint to fix style mistakes conflicting with effective go. (golint tool for vim users.)$ make devClient to build develoment version client.$ make updateSubmodule to fetch latest system contracts from repo, instead of making contract modifications locally.$ make gen to generate binding files for system contracts.$ make clean to remove built binaries or unnecessary generated files.