From 09992f3fb045fda866254eae8540385f2804e0e9 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Mon, 3 Sep 2018 17:46:24 -0700 Subject: [PATCH] server: remove unused lightningID field --- server.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/server.go b/server.go index f633db53..03a926e9 100644 --- a/server.go +++ b/server.go @@ -4,7 +4,6 @@ import ( "bytes" "context" "crypto/rand" - "crypto/sha256" "encoding/hex" "fmt" "image/color" @@ -81,10 +80,6 @@ type server struct { // that's backed by the identity private key of the running lnd node. nodeSigner *nodeSigner - // lightningID is the sha256 of the public key corresponding to our - // long-term identity private key. - lightningID [32]byte - // listenAddrs is the list of addresses the server is currently // listening on. listenAddrs []net.Addr @@ -266,8 +261,7 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB, cc *chainControl, // TODO(roasbeef): derive proper onion key based on rotation // schedule - sphinx: htlcswitch.NewOnionProcessor(sphinxRouter), - lightningID: sha256.Sum256(serializedPubKey[:]), + sphinx: htlcswitch.NewOnionProcessor(sphinxRouter), persistentPeers: make(map[string]struct{}), persistentPeersBackoff: make(map[string]time.Duration),