diff options
| author | Adam Soltys <[email protected]> | 2026-01-30 17:18:39 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-01-30 17:18:39 +0000 |
| commit | 3e2b756e5b97db690b9a707049060805ca88c9de (patch) | |
| tree | 8a574e7b451e2ed61f272e024e97cf1b165c6888 /lib/payments.ts | |
| parent | 1169a7e31efdbd98a91b582474da5d23ded9c126 (diff) | |
| download | coinos-server-3e2b756e5b97db690b9a707049060805ca88c9de.tar.gz coinos-server-3e2b756e5b97db690b9a707049060805ca88c9de.zip | |
relay reconnect logic
Diffstat (limited to 'lib/payments.ts')
| -rw-r--r-- | lib/payments.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/payments.ts b/lib/payments.ts index 1a886988..931bf167 100644 --- a/lib/payments.ts +++ b/lib/payments.ts @@ -849,6 +849,9 @@ export const check = async () => { else if (failed) await reverse(p); } catch (e) { err("failed to finalize", p.id, e.message); + if (e.message?.includes("already been reversed")) { + await db.sRem("pending", p.hash); + } } } } catch (e) { |
