From 69770f15e428a48997264a98d27b8092ca7d1baf Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Wed, 6 Jan 2021 10:47:19 +0100 Subject: [PATCH] server: use nodeKeyECDH everywhere --- server.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server.go b/server.go index 87754e896..cf9353ca3 100644 --- a/server.go +++ b/server.go @@ -670,7 +670,7 @@ func newServer(cfg *Config, listenAddrs []net.Addr, // With the announcement generated, we'll sign it to properly // authenticate the message on the network. authSig, err := netann.SignAnnouncement( - s.nodeSigner, s.identityECDH.PubKey(), nodeAnn, + s.nodeSigner, nodeKeyECDH.PubKey(), nodeAnn, ) if err != nil { return nil, fmt.Errorf("unable to generate signature for "+ @@ -824,7 +824,7 @@ func newServer(cfg *Config, listenAddrs []net.Addr, IgnoreHistoricalFilters: cfg.IgnoreHistoricalGossipFilters, PinnedSyncers: cfg.Gossip.PinnedSyncers, }, - s.identityECDH.PubKey(), + nodeKeyECDH.PubKey(), ) s.localChanMgr = &localchans.Manager{ @@ -1415,7 +1415,7 @@ func newServer(cfg *Config, listenAddrs []net.Addr, RetryDuration: time.Second * 5, TargetOutbound: 100, Dial: noiseDial( - s.identityECDH, s.cfg.net, s.cfg.ConnectionTimeout, + nodeKeyECDH, s.cfg.net, s.cfg.ConnectionTimeout, ), OnConnection: s.OutboundPeerConnected, })