|
|
@ -43,7 +43,7 @@ Verify that you have the latest version of Go installed: |
|
|
|
|
|
|
|
```bash |
|
|
|
$ go version |
|
|
|
go version go1.14.x darwin/amd64 |
|
|
|
go version go1.15.x darwin/amd64 |
|
|
|
``` |
|
|
|
|
|
|
|
Make sure you have `$GOPATH` environment variable set: |
|
|
@ -442,12 +442,28 @@ We are going to use [Go modules](https://github.com/golang/go/wiki/Modules) for |
|
|
|
dependency management. |
|
|
|
|
|
|
|
```bash |
|
|
|
export GO111MODULE=on |
|
|
|
go mod init github.com/me/example |
|
|
|
go build |
|
|
|
go get github.com/tendermint/tendermint/@v0.34.0 |
|
|
|
``` |
|
|
|
|
|
|
|
After running the above commands you will see two generated files, go.mod and go.sum. The go.mod file should look similar to: |
|
|
|
|
|
|
|
```go |
|
|
|
module github.com/me/example |
|
|
|
|
|
|
|
go 1.15 |
|
|
|
|
|
|
|
require ( |
|
|
|
github.com/dgraph-io/badger v1.6.2 |
|
|
|
github.com/tendermint/tendermint v0.34.0 |
|
|
|
) |
|
|
|
``` |
|
|
|
|
|
|
|
This should build the binary. |
|
|
|
Finally, we will build our binary: |
|
|
|
|
|
|
|
```sh |
|
|
|
go build |
|
|
|
``` |
|
|
|
|
|
|
|
To create a default configuration, nodeKey and private validator files, let's |
|
|
|
execute `tendermint init`. But before we do that, we will need to install |
|
|
|