diff --git a/docs/release-notes/release-notes-0.17.0.md b/docs/release-notes/release-notes-0.17.0.md index 107d24dab4..9ece76a40a 100644 --- a/docs/release-notes/release-notes-0.17.0.md +++ b/docs/release-notes/release-notes-0.17.0.md @@ -59,6 +59,9 @@ have to make sure to not broadcast outdated transactions which can lead to locked up wallet funds indefinitely in the worst case. +- [Remove nil value](https://github.com/lightningnetwork/lnd/pull/7922) from + variadic parameter list. + # New Features ## Functional Enhancements ### Protocol Features diff --git a/netann/host_ann.go b/netann/host_ann.go index fdb48e8399..767c3089c1 100644 --- a/netann/host_ann.go +++ b/netann/host_ann.go @@ -178,7 +178,7 @@ func IPAnnouncer(annUpdater NodeAnnUpdater) func([]net.Addr, map[string]struct{}) error { return func(newAddrs []net.Addr, oldAddrs map[string]struct{}) error { - _, err := annUpdater(nil, func( + _, err := annUpdater(func( currentNodeAnn *lnwire.NodeAnnouncement) { // To ensure we don't duplicate any addresses, we'll // filter out the same of addresses we should no longer