mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-11 01:11:02 +02:00
lnrpc+rpcserver: expose git commit hash in getinfo
This commit is contained in:
parent
5c04038c18
commit
91cd7e633a
1517
lnrpc/rpc.pb.go
1517
lnrpc/rpc.pb.go
File diff suppressed because it is too large
Load Diff
@ -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;
|
||||||
|
|
||||||
|
@ -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."
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user