chore: remove miners fee debug logs
This commit is contained in:
parent
f205f99d7f
commit
7989345a83
2 changed files with 2 additions and 9 deletions
|
|
@ -65,10 +65,7 @@ function sendCoins (account, tx, settings, operatorId, feeMultiplier) {
|
|||
|
||||
return checkCryptoCode(cryptoCode)
|
||||
.then(() => calculateFeeDiscount(feeMultiplier))
|
||||
.then(newFee => {
|
||||
logger.info('** DEBUG MINERS FEE ** - Calculated fee discount: ', newFee)
|
||||
return fetch('settxfee', [newFee])
|
||||
})
|
||||
.then(newFee => fetch('settxfee', [newFee]))
|
||||
.then(() => fetch('sendtoaddress', [toAddress, coins]))
|
||||
.then((txId) => fetch('gettransaction', [txId]))
|
||||
.then((res) => _.pick(['fee', 'txid'], res))
|
||||
|
|
@ -87,10 +84,7 @@ function sendCoins (account, tx, settings, operatorId, feeMultiplier) {
|
|||
function sendCoinsBatch (account, txs, cryptoCode, feeMultiplier) {
|
||||
return checkCryptoCode(cryptoCode)
|
||||
.then(() => calculateFeeDiscount(feeMultiplier))
|
||||
.then(newFee => {
|
||||
logger.info('** DEBUG MINERS FEE ** - Calculated fee discount: ', newFee)
|
||||
return fetch('settxfee', [newFee])
|
||||
})
|
||||
.then(newFee => fetch('settxfee', [newFee]))
|
||||
.then(() => _.reduce((acc, value) => ({
|
||||
...acc,
|
||||
[value.toAddress]: _.isNil(acc[value.toAddress])
|
||||
|
|
|
|||
|
|
@ -63,7 +63,6 @@ function sendCoins (settings, tx) {
|
|||
return fetchWallet(settings, tx.cryptoCode)
|
||||
.then(r => {
|
||||
const feeMultiplier = new BN(configManager.getWalletSettings(tx.cryptoCode, settings.config).feeMultiplier)
|
||||
console.log('** DEBUG MINERS FEE ** - Fee multiplier: ', feeMultiplier)
|
||||
return r.wallet.sendCoins(r.account, tx, settings, r.operatorId, feeMultiplier)
|
||||
.then(res => {
|
||||
mem.clear(module.exports.balance)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue