aboutsummaryrefslogtreecommitdiffstats
path: root/estimateLiquidFee.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-03-10 15:11:47 -0700
committerAdam Soltys <[email protected]>2020-03-10 15:11:47 -0700
commitd7b9a6e6d9b33ea974bfdb6b8bf38573906c7d01 (patch)
tree04f46e3a1b3f787c57a64241522044474a3c16d6 /estimateLiquidFee.js
parent629701a87138e2fedb69e260bc3951cb567b322c (diff)
downloadcoinos-server-d7b9a6e6d9b33ea974bfdb6b8bf38573906c7d01.tar.gz
coinos-server-d7b9a6e6d9b33ea974bfdb6b8bf38573906c7d01.zip
parse tx with javascript
Diffstat (limited to 'estimateLiquidFee.js')
-rw-r--r--estimateLiquidFee.js4
1 files changed, 1 insertions, 3 deletions
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 });