diff options
| author | Adam Soltys <[email protected]> | 2026-09-29 08:37:39 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-29 08:37:47 -0700 |
| commit | 598a142e852b4682888aceac0d2d8dc39e0f981c (patch) | |
| tree | 11100d5bc444004962786323f3b160150ac6ab63 /test | |
| parent | 4900ecb19ab9c6d279c8771b834fcb29e526a1e0 (diff) | |
| download | coinos-server-598a142e852b4682888aceac0d2d8dc39e0f981c.tar.gz coinos-server-598a142e852b4682888aceac0d2d8dc39e0f981c.zip | |
lnurl: budget unauthenticated invoice generation per recipient
GET /pay/:user/:amount and the lnurl callback create a CLN invoice and an
entry in the recipient's invoice list for anyone holding the link, which a
scanner on rotating IPs can do without tripping per-IP limits. Cap fresh
invoices at 120 per recipient per hour (reused invoices don't count).
Also fail cleanly for unknown usernames and skip invoice ids whose records
no longer exist, instead of throwing on the null and breaking the pay page.
Throttle the resulting lnurlp warnings per username.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions
