From 7e3c66e28fb94a5a07c24bd27d1a0be764e343ea Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Wed, 15 Jan 2020 14:51:58 +0400 Subject: [PATCH] docs: add link for installing Tendermint (#4307) * docs: add link for installing Tendermint to Go guides Refs #4286 * remind users to checkout latest release when installing from github source --- docs/guides/go-built-in.md | 13 ++++++++----- docs/guides/go.md | 13 ++++++++----- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/docs/guides/go-built-in.md b/docs/guides/go-built-in.md index 151d765f2..56f910331 100644 --- a/docs/guides/go-built-in.md +++ b/docs/guides/go-built-in.md @@ -40,7 +40,7 @@ Verify that you have the latest version of Go installed: ```sh $ go version -go version go1.13 darwin/amd64 +go version go1.13.1 darwin/amd64 ``` Make sure you have `$GOPATH` environment variable set: @@ -151,6 +151,8 @@ When a new transaction is added to the Tendermint Core, it will ask the application to check it (validate the format, signatures, etc.). ```go +import "bytes" + func (app *KVStoreApplication) isValid(tx []byte) (code uint32) { // check format parts := bytes.Split(tx, []byte("=")) @@ -286,7 +288,7 @@ the application's `Query` method. Applications are free to provide their own APIs. But by using Tendermint Core as a proxy, clients (including [light client -package](https://godoc.org/github.com/tendermint/tendermint/lite)) can leverage +package](https://godoc.org/github.com/tendermint/tendermint/lite2)) can leverage the unified API across different applications. Plus they won't have to call the otherwise separate Tendermint Core API for additional proofs. @@ -576,12 +578,13 @@ This should build the binary. 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 -Tendermint Core. +Tendermint Core. Please refer to [the official +guide](https://docs.tendermint.com/master/introduction/install.html). If you're +installing from source, don't forget to checkout the latest release (`git +checkout vX.Y.Z`). ```sh $ rm -rf /tmp/example -$ cd $GOPATH/src/github.com/tendermint/tendermint -$ make install $ TMHOME="/tmp/example" tendermint init I[2019-07-16|18:40:36.480] Generated private validator module=main keyFile=/tmp/example/config/priv_validator_key.json stateFile=/tmp/example2/data/priv_validator_state.json diff --git a/docs/guides/go.md b/docs/guides/go.md index 2af48aed8..6559a0005 100644 --- a/docs/guides/go.md +++ b/docs/guides/go.md @@ -43,7 +43,7 @@ Verify that you have the latest version of Go installed: ```sh $ go version -go version go1.13 darwin/amd64 +go version go1.13.1 darwin/amd64 ``` Make sure you have `$GOPATH` environment variable set: @@ -154,6 +154,8 @@ When a new transaction is added to the Tendermint Core, it will ask the application to check it (validate the format, signatures, etc.). ```go +import "bytes" + func (app *KVStoreApplication) isValid(tx []byte) (code uint32) { // check format parts := bytes.Split(tx, []byte("=")) @@ -289,7 +291,7 @@ the application's `Query` method. Applications are free to provide their own APIs. But by using Tendermint Core as a proxy, clients (including [light client -package](https://godoc.org/github.com/tendermint/tendermint/lite)) can leverage +package](https://godoc.org/github.com/tendermint/tendermint/lite2)) can leverage the unified API across different applications. Plus they won't have to call the otherwise separate Tendermint Core API for additional proofs. @@ -433,12 +435,13 @@ This should build the binary. 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 -Tendermint Core. +Tendermint Core. Please refer to [the official +guide](https://docs.tendermint.com/master/introduction/install.html). If you're +installing from source, don't forget to checkout the latest release (`git +checkout vX.Y.Z`). ```sh $ rm -rf /tmp/example -$ cd $GOPATH/src/github.com/tendermint/tendermint -$ make install $ TMHOME="/tmp/example" tendermint init I[2019-07-16|18:20:36.480] Generated private validator module=main keyFile=/tmp/example/config/priv_validator_key.json stateFile=/tmp/example2/data/priv_validator_state.json