main+lnd: display build.Version() for commit hash

This commit is contained in:
Conner Fromknecht committed 2018-10-05 13:04:45 +09:00
1 parent 97fd56cf47
commit 0903fe3183
3 files changed
+8 -7

No files matched your search

+2 -1
View File
@@ -24,6 +24,7 @@ import (
"github.com/btcsuite/btcwallet/waddrmgr"
"github.com/coreos/bbolt"
"github.com/davecgh/go-spew/spew"
"github.com/lightningnetwork/lnd/build"
"github.com/lightningnetwork/lnd/channeldb"
"github.com/lightningnetwork/lnd/htlcswitch"
"github.com/lightningnetwork/lnd/lnrpc"
@@ -1364,7 +1365,7 @@ func (r *rpcServer) GetInfo(ctx context.Context,
Uris: uris,
Alias: nodeAnn.Alias.String(),
BestHeaderTimestamp: int64(bestHeaderTimestamp),
Version: version(),
Version: build.Version(),
}, nil
}