discovery/multi: move SignAnnouncement to netann

This commit is contained in:
Conner Fromknecht committed 2020-03-17 16:23:01 -07:00
1 parent b03c3c2df3
commit df44d19936
5 files changed
+49 -40

No files matched your search

+2 -2
View File
@@ -651,7 +651,7 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB,
// With the announcement generated, we'll sign it to properly
// authenticate the message on the network.
authSig, err := discovery.SignAnnouncement(
authSig, err := netann.SignAnnouncement(
s.nodeSigner, s.identityPriv.PubKey(), nodeAnn,
)
if err != nil {
@@ -2068,7 +2068,7 @@ func (s *server) genNodeAnnouncement(refresh bool,
// Now that the announcement is fully updated, we'll generate a new
// signature over the announcement to ensure nodes on the network
// accepted the new authenticated announcement.
sig, err := discovery.SignAnnouncement(
sig, err := netann.SignAnnouncement(
s.nodeSigner, s.identityPriv.PubKey(), s.currentNodeAnn,
)
if err != nil {