aboutsummaryrefslogtreecommitdiffstats
path: root/routes/bitcoin
diff options
context:
space:
mode:
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) => {