netann/node_announcement: consolidate signing logic

This commit is contained in:
Conner Fromknecht committed 2020-03-17 16:25:02 -07:00
1 parent 089ac647d8
commit f6c194c3cd
3 files changed
+69 -32

No files matched your search

-8
View File
@@ -101,14 +101,6 @@ type NodeAnnouncement struct {
ExtraOpaqueData []byte
}
// UpdateNodeAnnAddrs is a functional option that allows updating the addresses
// of the given node announcement.
func UpdateNodeAnnAddrs(addrs []net.Addr) func(*NodeAnnouncement) {
return func(nodeAnn *NodeAnnouncement) {
nodeAnn.Addresses = addrs
}
}
// A compile time check to ensure NodeAnnouncement implements the
// lnwire.Message interface.
var _ Message = (*NodeAnnouncement)(nil)