From 5c04038c180b33250a11e350d9b728a00e87de67 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Thu, 9 Apr 2020 17:06:12 -0700 Subject: [PATCH] bulid: only return semantic version from Version() The version field in getinfo is kept the same for backwards compatibility. --- build/version.go | 3 --- rpcserver.go | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/build/version.go b/build/version.go index 2895f60c..6049735c 100644 --- a/build/version.go +++ b/build/version.go @@ -77,9 +77,6 @@ func Version() string { version = fmt.Sprintf("%s-%s", version, AppPreRelease) } - // Append commit hash of current build to version. - version = fmt.Sprintf("%s commit=%s", version, Commit) - return version } diff --git a/rpcserver.go b/rpcserver.go index 043373bf..337cc2a1 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -2407,7 +2407,7 @@ func (r *rpcServer) GetInfo(ctx context.Context, Alias: nodeAnn.Alias.String(), Color: routing.EncodeHexColor(nodeAnn.RGBColor), BestHeaderTimestamp: int64(bestHeaderTimestamp), - Version: build.Version(), + Version: build.Version() + " commit=" + build.Commit, SyncedToGraph: isGraphSynced, Features: features, }, nil