Skip to content

Commit 15d2ff0

Browse files
authored
netann+docs: remove nil value from variadic list (lightningnetwork#7922)
The nil value in the variadic list causes a panic when the variadic parameters are iterated over.
1 parent dde1495 commit 15d2ff0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/release-notes/release-notes-0.17.0.md

+3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@
5959
have to make sure to not broadcast outdated transactions which can lead to
6060
locked up wallet funds indefinitely in the worst case.
6161

62+
- [Remove nil value](https://github.com/lightningnetwork/lnd/pull/7922) from
63+
variadic parameter list.
64+
6265
# New Features
6366
## Functional Enhancements
6467
### Protocol Features

netann/host_ann.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ func IPAnnouncer(annUpdater NodeAnnUpdater) func([]net.Addr,
178178
map[string]struct{}) error {
179179

180180
return func(newAddrs []net.Addr, oldAddrs map[string]struct{}) error {
181-
_, err := annUpdater(nil, func(
181+
_, err := annUpdater(func(
182182
currentNodeAnn *lnwire.NodeAnnouncement) {
183183
// To ensure we don't duplicate any addresses, we'll
184184
// filter out the same of addresses we should no longer

0 commit comments

Comments
 (0)