diff --git a/lib/plugins/wallet/bitcoind/bitcoind.js b/lib/plugins/wallet/bitcoind/bitcoind.js index 2f9f9c19ff..b27bb4788c 100644 --- a/lib/plugins/wallet/bitcoind/bitcoind.js +++ b/lib/plugins/wallet/bitcoind/bitcoind.js @@ -74,7 +74,6 @@ function calculateFeeDiscount (feeMultiplier = 1, unitScale) { } // transform from sat/vB to BTC/kvB and apply the multipler const newFee = estimatedFee.shiftedBy(-unitScale+3).times(feeMultiplier) - console.log(newFee.toFixed()) if (newFee.lt(0.00001) || newFee.gt(0.1)) { logger.info('fee outside safety parameters, defaulting to automatic fee selection') return AUTOMATIC_FEE @@ -89,7 +88,7 @@ function sendCoins (account, tx, settings, operatorId, feeMultiplier) { return checkCryptoCode(cryptoCode) .then(() => calculateFeeDiscount(feeMultiplier, unitScale)) - .then(() => fetch('settxfee', [newFee])) + .then(newFee => fetch('settxfee', [newFee])) .then(() => fetch('sendtoaddress', [toAddress, coins])) .then((txId) => fetch('gettransaction', [txId])) .then((res) => _.pick(['fee', 'txid'], res)) @@ -208,8 +207,6 @@ function getTxHashesByAddress (cryptoCode, address) { .then(_.map(({ hash }) => hash)) } -calculateFeeDiscount(1, 8).then(console.log) - module.exports = { balance, sendCoins, @@ -218,7 +215,6 @@ module.exports = { newFunding, cryptoNetwork, fetchRBF, - estimateFee, sendCoinsBatch, checkBlockchainStatus, getTxHashesByAddress,