From d7b9a6e6d9b33ea974bfdb6b8bf38573906c7d01 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 10 Mar 2020 15:11:47 -0700 Subject: parse tx with javascript --- estimateLiquidFee.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'estimateLiquidFee.js') diff --git a/estimateLiquidFee.js b/estimateLiquidFee.js index fc1655b6..fb9e54f0 100644 --- a/estimateLiquidFee.js +++ b/estimateLiquidFee.js @@ -8,7 +8,7 @@ const bc = new BitcoinCore(config.liquid); module.exports = (app, db, emit) => async (req, res) => { let { user } = req; - let { address, amount, confTarget, feeRate, mode } = req.body; + let { address, amount, feeRate } = req.body; let tx, fee; try { @@ -23,8 +23,6 @@ module.exports = (app, db, emit) => async (req, res) => { } if (feeRate) params["feeRate"] = (parseInt(feeRate) / SATS * 1000).toFixed(8); - if (confTarget) params["conf_target"] = parseInt(confTarget); - if (mode) params["estimate_mode"] = mode; tx = await bc.fundRawTransaction(tx, params); res.send({ tx }); -- cgit v1.2.3