aboutsummaryrefslogtreecommitdiffstats
path: root/lib/payments.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-08 22:06:10 +0000
committerAdam Soltys <[email protected]>2024-11-09 00:45:42 +0000
commit7199b0f72b34e630e358f15f1a9351a58fa3008b (patch)
treece6c1ace9980e162b33e8742415193fc298ab2c3 /lib/payments.ts
parent6a6b9ab5b5292b51e2570eadb73e2e436c4f1117 (diff)
downloadcoinos-server-7199b0f72b34e630e358f15f1a9351a58fa3008b.tar.gz
coinos-server-7199b0f72b34e630e358f15f1a9351a58fa3008b.zip
logging
Diffstat (limited to 'lib/payments.ts')
-rw-r--r--lib/payments.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/payments.ts b/lib/payments.ts
index 0f55368f..0ae84f10 100644
--- a/lib/payments.ts
+++ b/lib/payments.ts
@@ -457,7 +457,6 @@ export const sendLightning = async ({
invstring: pr.replace(/\s/g, "").toLowerCase(),
amount_msat: amount_msat ? undefined : amount * 1000,
maxfee: maxfee ? maxfee * 1000 : 0,
- retry_for: 10,
});
try {
@@ -737,7 +736,7 @@ const reverse = async (p) => {
const ourfee = p.ourfee || 0;
const credit = Math.round(total * config.fee) - ourfee;
- const k = await db.reverse(
+ await db.reverse(
`payment:${p.id}`,
`balance:${p.uid}`,
`credit:${types.lightning}:${p.uid}`,
@@ -749,5 +748,5 @@ const reverse = async (p) => {
p.hash,
);
- warn("reversed", k);
+ warn("reversed", p.hash);
};