Trying to pay an AMP invoice with payinvoice command and amp flag set to true throws an error the AMP flag (--amp or SendPaymentRequest.Amp) must be set to pay an AMP invoice
./lncli -n=regtest payinvoice lnbcrt1u1pnr0n3cpp5zy9t58wttquf8dwxm8dymt9xxe27r003nv4w4py5unu768gnhajqdq423jhxarfdenjqctdwqsrycqzzsxqyjw5qsp52zuqjsgrn0k4g7ka5zthszjcvydxcfgl6hvjqzvzkkfa20ff3djq9q8pqqqsgq4w8ye3jxl30v6ez8c9h2mwyn65flu2qgdsclxkkh2cm5umsq6vezqf34sjx8jz4yc3m3h7uuuzgy95r5xkvt9pawpalnyv6hg3lzszspxkxkmw --amp=1
Payment hash: 110aba1dcb583893b5c6d9da4daca63655e1bdf19b2aea8494e4f9ed1d13bf64
Description: Testing amp 2
Amount (in satoshis): 100
Fee limit (in satoshis): 100
Destination: 02f31d2b3830e8afaf8621044460fa1ad6165aa0071601f8b26168a985c4d1cc08
Confirm payment (yes/no): yes
[lncli] rpc error: code = Unknown desc = the AMP flag (--amp or SendPaymentRequest.Amp) must be set to pay an AMP invoice
Background
Trying to pay an AMP invoice with
payinvoice
command andamp
flag set to true throws an errorthe AMP flag (--amp or SendPaymentRequest.Amp) must be set to pay an AMP invoice
Your environment
lnd
- 0.18.0-beta.rc1Steps to reproduce
payinvoice
command andamp
flag set to trueExpected behaviour
Should be able to pay the invoice if the
amp
flag is set to trueActual behaviour
Throws a rpc error