netann+docs: remove nil value from variadic list (#7922)
The nil value in the variadic list causes a panic when the variadic parameters are iterated over.
This commit is contained in:
2 files changed
+4
-1
No files matched your search
@@ -59,6 +59,9 @@
|
|||||||
have to make sure to not broadcast outdated transactions which can lead to
|
have to make sure to not broadcast outdated transactions which can lead to
|
||||||
locked up wallet funds indefinitely in the worst case.
|
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
|
# New Features
|
||||||
## Functional Enhancements
|
## Functional Enhancements
|
||||||
### Protocol Features
|
### Protocol Features
|
||||||
|
|||||||
+1
-1
@@ -178,7 +178,7 @@ func IPAnnouncer(annUpdater NodeAnnUpdater) func([]net.Addr,
|
|||||||
map[string]struct{}) error {
|
map[string]struct{}) error {
|
||||||
|
|
||||||
return func(newAddrs []net.Addr, oldAddrs map[string]struct{}) error {
|
return func(newAddrs []net.Addr, oldAddrs map[string]struct{}) error {
|
||||||
_, err := annUpdater(nil, func(
|
_, err := annUpdater(func(
|
||||||
currentNodeAnn *lnwire.NodeAnnouncement) {
|
currentNodeAnn *lnwire.NodeAnnouncement) {
|
||||||
// To ensure we don't duplicate any addresses, we'll
|
// To ensure we don't duplicate any addresses, we'll
|
||||||
// filter out the same of addresses we should no longer
|
// filter out the same of addresses we should no longer
|
||||||
|
|||||||
Reference in new issue
Block a user