-
Notifications
You must be signed in to change notification settings - Fork 2.3k
[feature]: more clearly define the payment_addr field in all documentation #7438
Copy link
Copy link
Labels
beginnerIssues suitable for new developersIssues suitable for new developersdocumentationDocumentation changes that do not affect code behaviourDocumentation changes that do not affect code behaviourenhancementImprovements to existing features / behaviourImprovements to existing features / behaviourgood first issueIssues suitable for first time contributors to LNDIssues suitable for first time contributors to LNDup for grabsPRs which have been abandoned by their original authors and can be taken up by someone elsePRs which have been abandoned by their original authors and can be taken up by someone else
Metadata
Metadata
Assignees
Labels
beginnerIssues suitable for new developersIssues suitable for new developersdocumentationDocumentation changes that do not affect code behaviourDocumentation changes that do not affect code behaviourenhancementImprovements to existing features / behaviourImprovements to existing features / behaviourgood first issueIssues suitable for first time contributors to LNDIssues suitable for first time contributors to LNDup for grabsPRs which have been abandoned by their original authors and can be taken up by someone elsePRs which have been abandoned by their original authors and can be taken up by someone else
lncli addinvoiceyields apayment_addrfield. When usinglncli sendpaymentand manually specifying a payment, apay_addrfield is required. Similarly forlncli buildroute, we must pass apayment_addrin order forlncli sendtorouteto actually work with the route that was built. What is this parameter for? I can't find it in any BOLTS.I "think" it is supposed to be the
payment_secret, which is mentioned here https://github.com/lightning/bolts/blob/master/04-onion-routing.md#payload-for-the-last-node and https://github.com/lightning/bolts/blob/master/11-payment-encoding.md#tagged-fields . Also, lightning/bolts#643 (comment) suggests apayment_addressparameter, which I think is the same thing.If I run
lncli addinvoiceand put thepayment_requestoutput into https://www.bolt11.org/ thepayment_secretseems to match thepayment_addr.Please clarify the documentation so that so much interrogation isn't required to understand the
payment_addrfield.