multi: remove HaveNodeAnnouncement field from Node
Remove the 2 sources of truth here. If we have a signature for the node, then we have the announcement.
This commit is contained in:
1 parent
a394938dfd
commit
8f205e2d1c
15 files changed
+154
-182
No files matched your search
@@ -295,7 +295,7 @@ func (c *ChanSeries) FetchChanAnns(chain chainhash.Hash,
|
||||
// If this edge has a validated node announcement, that
|
||||
// we haven't yet sent, then we'll send that as well.
|
||||
nodePub := channel.Node2.PubKeyBytes
|
||||
hasNodeAnn := channel.Node2.HaveNodeAnnouncement
|
||||
hasNodeAnn := channel.Node2.HaveAnnouncement()
|
||||
if _, ok := nodePubsSent[nodePub]; !ok && hasNodeAnn {
|
||||
nodeAnn, err := channel.Node2.NodeAnnouncement(
|
||||
true,
|
||||
@@ -321,7 +321,7 @@ func (c *ChanSeries) FetchChanAnns(chain chainhash.Hash,
|
||||
// If this edge has a validated node announcement, that
|
||||
// we haven't yet sent, then we'll send that as well.
|
||||
nodePub := channel.Node1.PubKeyBytes
|
||||
hasNodeAnn := channel.Node1.HaveNodeAnnouncement
|
||||
hasNodeAnn := channel.Node1.HaveAnnouncement()
|
||||
if _, ok := nodePubsSent[nodePub]; !ok && hasNodeAnn {
|
||||
nodeAnn, err := channel.Node1.NodeAnnouncement(
|
||||
true,
|
||||
|
||||
Reference in new issue
Block a user