Files
tendermint/docs/tendermint-core/rpc.md
Marko ab69153037 docs: how to add tm version to RPC (#6151)
## Description

Add docs on how to get tendermint version into RPC version outputs
2021-02-19 13:05:42 +00:00

809 B

order
order
9

RPC

The RPC documentation is hosted here:

To update the documentation, edit the relevant godoc comments in the rpc/core directory.

If you are using Tendermint in-process, you will need to set the version to be displayed in the RPC.

If you are using a makefile with your go project, this can be done by using sed and ldflags.

Example:

VERSION := $(shell go list -m github.com/tendermint/tendermint | sed 's:.* ::')
LD_FLAGS = -X github.com/tendermint/tendermint/version.TMCoreSemVer=$(VERSION)

install:
  @echo "Installing the brr machine"
  @go install -mod=readonly -ldflags "$(LD_FLAGS)" ./cmd/<app>
.PHONY: install