feature: flip the required bit for payment addr in invoices/payload

In this commit, we move to start requiring the payment addr feature bit
in the invoices we produce. With this change, if a user attempts to pay
one of our invoices (assuming they're also an lnd node), then they'll
receive an error when they attempt to pay. At this point, *most* lnd
nodes should be on v0.11 at this point, and this change will notify any
lagging wallet authors to update, as these payments are generally more
secure.
This commit is contained in:
Olaoluwa Osuntokun 2020-11-06 19:16:35 -08:00
parent ef503bf14e
commit 82ccab606c
No known key found for this signature in database
GPG Key ID: 3BBD59E99B280306

@ -33,7 +33,7 @@ var defaultSetDesc = setDesc{
SetInit: {}, // I
SetNodeAnn: {}, // N
},
lnwire.PaymentAddrOptional: {
lnwire.PaymentAddrRequired: {
SetInit: {}, // I
SetNodeAnn: {}, // N
SetInvoice: {}, // 9