aboutsummaryrefslogtreecommitdiffstats
path: root/lib/payments.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-01-30 17:18:39 +0000
committerAdam Soltys <[email protected]>2026-01-30 17:18:39 +0000
commit3e2b756e5b97db690b9a707049060805ca88c9de (patch)
tree8a574e7b451e2ed61f272e024e97cf1b165c6888 /lib/payments.ts
parent1169a7e31efdbd98a91b582474da5d23ded9c126 (diff)
downloadcoinos-server-3e2b756e5b97db690b9a707049060805ca88c9de.tar.gz
coinos-server-3e2b756e5b97db690b9a707049060805ca88c9de.zip
relay reconnect logic
Diffstat (limited to 'lib/payments.ts')
-rw-r--r--lib/payments.ts3
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) {