lnrpc+rpcserver: expose git commit hash in getinfo

This commit is contained in:
Conner Fromknecht committed 2020-04-10 16:39:31 -07:00
1 parent 5c04038c18
commit 91cd7e633a
4 files changed
+772 -753

No files matched your search

+764 -753
View File
File diff suppressed because it is too large. Load diff
+3
View File
@@ -1660,6 +1660,9 @@ message GetInfoResponse {
/// The version of the LND software that the node is running. /// The version of the LND software that the node is running.
string version = 14; string version = 14;
/// The SHA1 commit hash that the daemon is compiled with.
string commit_hash = 20;
/// The identity pubkey of the current node. /// The identity pubkey of the current node.
string identity_pubkey = 1; string identity_pubkey = 1;
+4
View File
@@ -2923,6 +2923,10 @@
"type": "string", "type": "string",
"description": "/ The version of the LND software that the node is running." "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": { "identity_pubkey": {
"type": "string", "type": "string",
"description": "/ The identity pubkey of the current node." "description": "/ The identity pubkey of the current node."
+1
View File
@@ -2408,6 +2408,7 @@ func (r *rpcServer) GetInfo(ctx context.Context,
Color: routing.EncodeHexColor(nodeAnn.RGBColor), Color: routing.EncodeHexColor(nodeAnn.RGBColor),
BestHeaderTimestamp: int64(bestHeaderTimestamp), BestHeaderTimestamp: int64(bestHeaderTimestamp),
Version: build.Version() + " commit=" + build.Commit, Version: build.Version() + " commit=" + build.Commit,
CommitHash: build.CommitHash,
SyncedToGraph: isGraphSynced, SyncedToGraph: isGraphSynced,
Features: features, Features: features,
}, nil }, nil