From 3d29e9dc6668d127dd735abd1a2d4264d905f9b6 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Wed, 28 Mar 2018 14:09:42 -0700 Subject: [PATCH] lnd: add Commit hook for git hash -ldflag --- lnd.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lnd.go b/lnd.go index 9a0e1e71..11c77bdd 100644 --- a/lnd.go +++ b/lnd.go @@ -57,6 +57,10 @@ const ( ) var ( + //Commit stores the current commit hash of this build. This should be + //set using -ldflags during compilation. + Commit string + cfg *config shutdownChannel = make(chan struct{}) registeredChains = newChainRegistry()