diff options
| author | Adam Soltys <[email protected]> | 2026-03-06 06:11:55 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-03-05 22:19:55 -0800 |
| commit | 4ac3f491fbb77433aef4dd8fcf560a1d1475e0bd (patch) | |
| tree | 80242b4af6dcdfde0b0361031d0b8d3832794d69 /lib | |
| parent | a6bc64017162bcaf1b7c2f3525f89c0e8dbe8d68 (diff) | |
| download | coinos-server-4ac3f491fbb77433aef4dd8fcf560a1d1475e0bd.tar.gz coinos-server-4ac3f491fbb77433aef4dd8fcf560a1d1475e0bd.zip | |
fix pending payment cleanup and login password verification
Skip non-lightning entries in pending payments check and handle
malformed password hashes gracefully during login.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/payments.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/payments.ts b/lib/payments.ts index d0c43235..255774ee 100644 --- a/lib/payments.ts +++ b/lib/payments.ts @@ -1557,6 +1557,10 @@ export const check = async () => { const payments = await db.sMembers("pending"); for (const pr of payments) { + if (!pr.startsWith("ln")) { + await db.sRem("pending", pr); + continue; + } const p = await getPayment(pr); if (!p || Date.now() - p.created < 10000) continue; const { pays } = await ln.listpays(pr); |
