diff options
| author | Adam Soltys <[email protected]> | 2020-01-27 05:04:39 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-01-27 05:04:39 +0000 |
| commit | 4ea9df7cda9d0c8f320c46a6d3d46ecd8b3b0d8e (patch) | |
| tree | 653e9c94b9ecbb966f94f4a8b565687f810f781b /sendLiquid.js | |
| parent | 7e93bf135898ff8f530e1d04c8962583c8330303 (diff) | |
| download | coinos-server-4ea9df7cda9d0c8f320c46a6d3d46ecd8b3b0d8e.tar.gz coinos-server-4ea9df7cda9d0c8f320c46a6d3d46ecd8b3b0d8e.zip | |
remove logging
Diffstat (limited to 'sendLiquid.js')
| -rw-r--r-- | sendLiquid.js | 6 |
1 files changed, 1 insertions, 5 deletions
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; |
