From 4ea9df7cda9d0c8f320c46a6d3d46ecd8b3b0d8e Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 27 Jan 2020 05:04:39 +0000 Subject: remove logging --- sendLiquid.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'sendLiquid.js') diff --git a/sendLiquid.js b/sendLiquid.js index cdfad4a1..ae57b520 100644 --- a/sendLiquid.js +++ b/sendLiquid.js @@ -20,19 +20,15 @@ module.exports = (app, db, emit) => async (req, res) => { [address]: (amount / SATS).toFixed(8) }); - l("funding", rawtx, amount, req.user.balance); - rawtx = await bc.fundRawTransaction(rawtx, { subtractFeeFromOutputs: amount === req.user.balance ? [0] : [] }); - l("raw tx", rawtx.hex); hex = await bc.blindRawTransaction(rawtx.hex); ({ fee } = rawtx); fee = parseInt(fee * SATS); } catch (e) { - l("wawaw", e); return res.status(500).send(e.message); } @@ -60,7 +56,7 @@ module.exports = (app, db, emit) => async (req, res) => { } try { - if (config.bitcoin.walletpass) + if (config.liquid.walletpass) await bc.walletPassphrase(config.bitcoin.walletpass, 300); rawtx = (await bc.signRawTransactionWithWallet(hex)).hex; -- cgit v1.2.3