lnrpc/peers: handle net address changes in updateNodeAnnouncement

This commit is contained in:
positiveblue committed 2022-04-02 19:09:10 -07:00
1 parent aacb2565f5
commit 76196db70e
4 files changed
+178 -11

No files matched your search

+2 -2
View File
@@ -15,7 +15,7 @@ import (
type NodeAnnModifier func(*lnwire.NodeAnnouncement)
// NodeAnnSetAlias is a functional option that sets the alias of the
// given node announcment.
// given node announcement.
func NodeAnnSetAlias(alias lnwire.NodeAlias) func(*lnwire.NodeAnnouncement) {
return func(nodeAnn *lnwire.NodeAnnouncement) {
nodeAnn.Alias = alias
@@ -31,7 +31,7 @@ func NodeAnnSetAddrs(addrs []net.Addr) func(*lnwire.NodeAnnouncement) {
}
// NodeAnnSetColor is a functional option that sets the color of the
// given node announcment.
// given node announcement.
func NodeAnnSetColor(newColor color.RGBA) func(*lnwire.NodeAnnouncement) {
return func(nodeAnn *lnwire.NodeAnnouncement) {
nodeAnn.RGBColor = newColor