diff options
| author | Adam Soltys <[email protected]> | 2022-09-08 17:03:45 -0400 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-08 17:03:45 -0400 |
| commit | 5a552347b012cdebf1b5bc4834d650a1e97bfd3d (patch) | |
| tree | f3acf6ab6205c18a44fe88528ad797006a63666f /routes/bitcoin | |
| parent | e36990c368d991e7cd52be874ad200fc3bc7205a (diff) | |
| download | coinos-server-5a552347b012cdebf1b5bc4834d650a1e97bfd3d.tar.gz coinos-server-5a552347b012cdebf1b5bc4834d650a1e97bfd3d.zip | |
misc fixes
Diffstat (limited to 'routes/bitcoin')
| -rw-r--r-- | routes/bitcoin/receive.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/routes/bitcoin/receive.js b/routes/bitcoin/receive.js index 07266d5f..7fc685c5 100644 --- a/routes/bitcoin/receive.js +++ b/routes/bitcoin/receive.js @@ -159,6 +159,7 @@ zmqRawTx.on("message", async (topic, message, sequence) => { }); zmqRawBlock.on("message", async (topic, message, sequence) => { + try { const payments = await db.Payment.findAll({ where: { confirmed: false } }); @@ -168,6 +169,9 @@ zmqRawBlock.on("message", async (topic, message, sequence) => { let hash = reverse(tx.getHash()).toString("hex"); if (payments.find(p => p.hash === hash)) queue[hash] = 1; }); + } catch(e) { + console.log(e) + } }); setInterval(async () => { |
