multi/refactor: separate methods for get and set node announcement
In preparation for a more complex function signature for set node announcement, separate get and set so that readonly callers don't need to handle the extra arguments.
This commit is contained in:
10 files changed
+94
-91
No files matched your search
+2
-1
@@ -373,7 +373,8 @@ type Config struct {
|
||||
msg []byte, doubleHash bool) (*ecdsa.Signature, error)
|
||||
|
||||
// CurrentNodeAnnouncement should return the latest, fully signed node
|
||||
// announcement from the backing Lightning Network node.
|
||||
// announcement from the backing Lightning Network node with a fresh
|
||||
// timestamp.
|
||||
CurrentNodeAnnouncement func() (lnwire.NodeAnnouncement, error)
|
||||
|
||||
// SendAnnouncement is used by the FundingManager to send announcement
|
||||
|
||||
Reference in new issue
Block a user