discovery/gossiper: remove source pubkey from ProcessLocalAnnouncement params

This commit is contained in:
Johan T. Halseth committed 2021-02-11 15:13:51 +01:00
1 parent 69770f15e4
commit f047c3517f
3 files changed
+43 -110

No files matched your search

+2 -2
View File
@@ -574,7 +574,7 @@ func (d *AuthenticatedGossiper) ProcessRemoteAnnouncement(msg lnwire.Message,
// entire channel announcement and update messages will be re-constructed and
// broadcast to the rest of the network.
func (d *AuthenticatedGossiper) ProcessLocalAnnouncement(msg lnwire.Message,
source *btcec.PublicKey, optionalFields ...OptionalMsgField) chan error {
optionalFields ...OptionalMsgField) chan error {
optionalMsgFields := &optionalMsgFields{}
optionalMsgFields.apply(optionalFields...)
@@ -583,7 +583,7 @@ func (d *AuthenticatedGossiper) ProcessLocalAnnouncement(msg lnwire.Message,
msg: msg,
optionalMsgFields: optionalMsgFields,
isRemote: false,
source: source,
source: d.selfKey,
err: make(chan error, 1),
}