aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-08-09 21:05:23 -0700
committerAdam Soltys <[email protected]>2021-08-09 21:05:46 -0700
commit0be505ce1c6c6304a1a55ccf05ac5ff2f5361f47 (patch)
tree4925523711bb374dc2077f0bdece2b9009159364
parent125daf2a6f829c28c72d3ba218bc443a7bda57fb (diff)
downloadcoinos-server-0be505ce1c6c6304a1a55ccf05ac5ff2f5361f47.tar.gz
coinos-server-0be505ce1c6c6304a1a55ccf05ac5ff2f5361f47.zip
log failed tx
-rw-r--r--routes/assets.js2
1 files changed, 1 insertions, 1 deletions
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 => {