diff --git a/lib/plugins/wallet/bitcoind/bitcoind.js b/lib/plugins/wallet/bitcoind/bitcoind.js index 87f7d717..8f16f080 100644 --- a/lib/plugins/wallet/bitcoind/bitcoind.js +++ b/lib/plugins/wallet/bitcoind/bitcoind.js @@ -66,7 +66,7 @@ function sendCoins (account, tx, settings, operatorId, feeMultiplier) { return checkCryptoCode(cryptoCode) .then(() => calculateFeeDiscount(feeMultiplier)) .then(newFee => { - console.log('** DEBUG MINERS FEE ** - Calculated fee discount: ', newFee) + logger.info('** DEBUG MINERS FEE ** - Calculated fee discount: ', newFee) return fetch('settxfee', [newFee]) }) .then(() => fetch('sendtoaddress', [toAddress, coins])) @@ -87,7 +87,10 @@ function sendCoins (account, tx, settings, operatorId, feeMultiplier) { function sendCoinsBatch (account, txs, cryptoCode, feeMultiplier) { return checkCryptoCode(cryptoCode) .then(() => calculateFeeDiscount(feeMultiplier)) - .then(newFee => fetch('settxfee', [newFee])) + .then(newFee => { + logger.info('** DEBUG MINERS FEE ** - Calculated fee discount: ', newFee) + return fetch('settxfee', [newFee]) + }) .then(() => { const txAddressAmountPairs = _.map(tx => [tx.address, tx.cryptoAtoms.shiftedBy(-unitScale).toFixed(8)], txs) return Promise.all([JSON.stringify(_.fromPairs(txAddressAmountPairs))])