aboutsummaryrefslogtreecommitdiffstats
path: root/routes/bitcoin
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-09-13 18:12:44 -0400
committerAdam Soltys <[email protected]>2022-09-13 18:12:44 -0400
commit9f6595065f3c2433b2f542fd12ff976ff02d17e3 (patch)
tree9b9275bea0441998efb574e3debf9b2af4c33b40 /routes/bitcoin
parentbacae729031d54b96b0420ea05800e5dc6afd960 (diff)
downloadcoinos-server-9f6595065f3c2433b2f542fd12ff976ff02d17e3.tar.gz
coinos-server-9f6595065f3c2433b2f542fd12ff976ff02d17e3.zip
lnurl fixes
Diffstat (limited to 'routes/bitcoin')
-rw-r--r--routes/bitcoin/receive.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/routes/bitcoin/receive.js b/routes/bitcoin/receive.js
index 7fc685c5..544021b0 100644
--- a/routes/bitcoin/receive.js
+++ b/routes/bitcoin/receive.js
@@ -32,6 +32,7 @@ const seen = [];
zmqRawTx.on("message", async (topic, message, sequence) => {
+ try {
const hex = message.toString("hex");
let tx = bitcoin.Transaction.fromHex(message);
@@ -152,10 +153,13 @@ zmqRawTx.on("message", async (topic, message, sequence) => {
});
}
} catch (e) {
- console.log(e);
+ console.log("problem parsing bitcoin tx", e);
}
})
);
+ } catch(e) {
+ console.log("problem receiving bitcoin tx", e);
+ }
});
zmqRawBlock.on("message", async (topic, message, sequence) => {