aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/createExceptions.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-06-14 12:38:29 -0700
committerAdam Soltys <[email protected]>2026-06-17 07:47:49 -0700
commit0987582546363935c5a388a9accb9b245c11a7c7 (patch)
tree8cfa81107fab77a01bb7d4cabcc6d6865f1166bb /scripts/createExceptions.js
parentaf8e395dd9ed010fce0e3b92593d5ea6d39dc65a (diff)
downloadcoinos-server-0987582546363935c5a388a9accb9b245c11a7c7.tar.gz
coinos-server-0987582546363935c5a388a9accb9b245c11a7c7.zip
nwc: pay_invoice honors request amount for amountless bolt11
Port of master ce9616f6. pay_invoice derived the amount solely from the decoded invoice, so an amountless bolt11 yielded amount = round(undefined/ 1000) = NaN and sendLightning rejected it with "Invalid amount". NIP-47 lets the client specify the amount (msat) in the request; fall back to it when the invoice carries none, with a clear error if still missing. Fixes #83. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Diffstat (limited to 'scripts/createExceptions.js')
0 files changed, 0 insertions, 0 deletions