lnrpc+rpcserver: expose git commit hash in getinfo

This commit is contained in:
Conner Fromknecht 2020-04-09 17:06:37 -07:00
parent 5c04038c18
commit 91cd7e633a
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7
4 changed files with 772 additions and 753 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1660,6 +1660,9 @@ message GetInfoResponse {
/// The version of the LND software that the node is running.
string version = 14;
/// The SHA1 commit hash that the daemon is compiled with.
string commit_hash = 20;
/// The identity pubkey of the current node.
string identity_pubkey = 1;

View File

@ -2923,6 +2923,10 @@
"type": "string",
"description": "/ The version of the LND software that the node is running."
},
"commit_hash": {
"type": "string",
"description": "/ The SHA1 commit hash that the daemon is compiled with."
},
"identity_pubkey": {
"type": "string",
"description": "/ The identity pubkey of the current node."

View File

@ -2408,6 +2408,7 @@ func (r *rpcServer) GetInfo(ctx context.Context,
Color: routing.EncodeHexColor(nodeAnn.RGBColor),
BestHeaderTimestamp: int64(bestHeaderTimestamp),
Version: build.Version() + " commit=" + build.Commit,
CommitHash: build.CommitHash,
SyncedToGraph: isGraphSynced,
Features: features,
}, nil