aboutsummaryrefslogtreecommitdiffstats
path: root/routes/liquid/fee.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-08-03 01:52:53 -0700
committerAdam Soltys <[email protected]>2021-08-03 01:52:53 -0700
commit1344458e0cf3322253599524899b3cce565cf1af (patch)
treefd2eb66c71211f25f4e5e2ec209a78747a81e123 /routes/liquid/fee.js
parentbca4fe152c83ab6a615a5e1601ca965187ee95e3 (diff)
parente5e2bcf015b128c71cacf125d6aea4a0dddd30c3 (diff)
downloadcoinos-server-1344458e0cf3322253599524899b3cce565cf1af.tar.gz
coinos-server-1344458e0cf3322253599524899b3cce565cf1af.zip
Merge branch 'dev' into v1.0.0
Diffstat (limited to 'routes/liquid/fee.js')
-rw-r--r--routes/liquid/fee.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/routes/liquid/fee.js b/routes/liquid/fee.js
index 2070873a..fad69f13 100644
--- a/routes/liquid/fee.js
+++ b/routes/liquid/fee.js
@@ -3,11 +3,6 @@ const buildTx = require("../../lib/buildliquidtx");
liquidTx = async ({ address, asset, amount, feeRate, replaceable, user }) => {
let tx, fee;
let node = lq;
- /*
- if (asset === config.liquid.btcasset) {
- node = rare;
- }
- */
if (user.account.pubkey) {
let psbt = await buildTx({
@@ -64,6 +59,8 @@ liquidTx = async ({ address, asset, amount, feeRate, replaceable, user }) => {
}
);
+ l.info("funding tx for fee estimate", tx);
+
tx = await node.fundRawTransaction(tx, params);
let blinded = await node.blindRawTransaction(tx.hex);
@@ -81,7 +78,7 @@ module.exports = ah(async (req, res) => {
let tx = await liquidTx({ ...req.body, user: req.user })
res.send(tx);
} catch (e) {
- l.error("error estimating liquid fee", e.message, e.stack);
+ l.error("error estimating liquid fee", e.message);
return res.status(500).send(e.message);
}
});