version: revert version through ldflag only (#6494)

## Description

Add version back to versions, but allow it to be overridden via a ldflag.

Reason:

Many users are not setting the ldflag causing issues with tooling that relies on it (cosmjs)

closes #6488

cc @webmaster128
This commit is contained in:
Marko
2021-05-28 16:22:31 +02:00
committed by GitHub
parent 97202b06c3
commit 1709e49813
10 changed files with 18 additions and 12 deletions

View File

@@ -9,7 +9,7 @@ import (
// the abci.RequestInfo message during handshake with the app.
// It contains only compile-time version information.
var RequestInfo = abci.RequestInfo{
Version: version.TMCoreSemVer,
Version: version.TMVersion,
BlockVersion: version.BlockProtocol,
P2PVersion: version.P2PProtocol,
AbciVersion: version.ABCIVersion,