aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-01-03 00:42:32 +0000
committerAdam Soltys <[email protected]>2024-01-03 00:42:32 +0000
commit8bcf278790bb0c8e904215c1a563e301076fca14 (patch)
tree1def22a0e6236e23530f7174b0532ede6332a894
parenta028e295f84ca47d78a8578970ebabeb2199bff9 (diff)
downloadcoinos-server-8bcf278790bb0c8e904215c1a563e301076fca14.tar.gz
coinos-server-8bcf278790bb0c8e904215c1a563e301076fca14.zip
fee error message
-rw-r--r--lib/payments.js2
-rw-r--r--routes/payments.js4
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/payments.js b/lib/payments.js
index b2c01e2f..9618c30f 100644
--- a/lib/payments.js
+++ b/lib/payments.js
@@ -422,7 +422,7 @@ let catchUp = async () => {
seen.push(txid);
} catch (e) {
- err("problem confirming", e.message);
+ err("problem confirming", e.message);
}
}
} catch (e) {
diff --git a/routes/payments.js b/routes/payments.js
index b40419fa..33544fd7 100644
--- a/routes/payments.js
+++ b/routes/payments.js
@@ -283,7 +283,9 @@ export default {
body.amount,
body.address,
);
- bail(res, "problem estimating fee");
+ let msg = e.message;
+ if (msg.includes("500")) msg = "";
+ bail(res, "problem estimating fee " + msg);
}
},