bulid: only return semantic version from Version()
The version field in getinfo is kept the same for backwards compatibility.
This commit is contained in:
parent
a25269c4d3
commit
5c04038c18
@ -77,9 +77,6 @@ func Version() string {
|
|||||||
version = fmt.Sprintf("%s-%s", version, AppPreRelease)
|
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
|
return version
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2407,7 +2407,7 @@ func (r *rpcServer) GetInfo(ctx context.Context,
|
|||||||
Alias: nodeAnn.Alias.String(),
|
Alias: nodeAnn.Alias.String(),
|
||||||
Color: routing.EncodeHexColor(nodeAnn.RGBColor),
|
Color: routing.EncodeHexColor(nodeAnn.RGBColor),
|
||||||
BestHeaderTimestamp: int64(bestHeaderTimestamp),
|
BestHeaderTimestamp: int64(bestHeaderTimestamp),
|
||||||
Version: build.Version(),
|
Version: build.Version() + " commit=" + build.Commit,
|
||||||
SyncedToGraph: isGraphSynced,
|
SyncedToGraph: isGraphSynced,
|
||||||
Features: features,
|
Features: features,
|
||||||
}, nil
|
}, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user