feat: add more debug logs
This commit is contained in:
parent
e48de472e4
commit
1bc76679dd
1 changed files with 5 additions and 2 deletions
|
|
@ -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))])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue