aboutsummaryrefslogtreecommitdiffstats
path: root/routes/payments.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-01-02 15:50:32 -0800
committerAdam Soltys <[email protected]>2024-01-02 15:50:32 -0800
commitb0997338aeaec62ccf6b97af5784fa2ff167d931 (patch)
treeb27b1f06cb88c284c42b07557d652f89e4e92d97 /routes/payments.js
parent80f67a648137a8ea2ef3715b3f80af290f384bb2 (diff)
downloadcoinos-server-prod.tar.gz
coinos-server-prod.zip
get wtxid for liquidprod
Diffstat (limited to 'routes/payments.js')
-rw-r--r--routes/payments.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/routes/payments.js b/routes/payments.js
index 5a46f29e..0613c577 100644
--- a/routes/payments.js
+++ b/routes/payments.js
@@ -317,6 +317,9 @@ export default {
type === types.liquid ? await node.blindRawTransaction(hex) : hex,
);
+ if (type === types.liquid)
+ ({ wtxid: txid } = await lq.decodeRawTransaction(signed));
+
let r = await node.testMempoolAccept([signed]);
if (!r[0].allowed) fail("transaction rejected");