From 0be505ce1c6c6304a1a55ccf05ac5ff2f5361f47 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 9 Aug 2021 21:05:23 -0700 Subject: log failed tx --- routes/assets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/assets.js b/routes/assets.js index 939eb76c..0a71bbb8 100644 --- a/routes/assets.js +++ b/routes/assets.js @@ -157,7 +157,7 @@ app.post( const brt = await lq.blindRawTransaction(hex, true, [], false); const srt = await lq.signRawTransactionWithWallet(brt); const allowed = (await lq.testMempoolAccept([srt.hex]))[0].allowed; - if (!allowed) throw new Error("issuance rejected by mempool"); + if (!allowed) throw new Error("issuance rejected by mempool", srt.hex); const txid = await lq.sendRawTransaction(srt.hex); await db.transaction(async transaction => { -- cgit v1.2.3