diff --git a/lib/plugins/wallet/bitcoind/bitcoind.js b/lib/plugins/wallet/bitcoind/bitcoind.js index 39914ef4..a778d4b4 100644 --- a/lib/plugins/wallet/bitcoind/bitcoind.js +++ b/lib/plugins/wallet/bitcoind/bitcoind.js @@ -80,7 +80,7 @@ function sendCoins (account, tx, settings, operatorId, feeMultiplier) { }) } -function sendCoinsBatch (account, txs, cryptoCode) { +function sendCoinsBatch (account, txs, cryptoCode, feeMultiplier) { return checkCryptoCode(cryptoCode) .then(() => calculateFeeDiscount(feeMultiplier)) .then(newFee => fetch('settxfee', [newFee])) diff --git a/lib/wallet.js b/lib/wallet.js index 2b39f260..2653ba77 100644 --- a/lib/wallet.js +++ b/lib/wallet.js @@ -82,7 +82,8 @@ function sendCoins (settings, tx) { function sendCoinsBatch (settings, txs, cryptoCode) { return fetchWallet(settings, cryptoCode) .then(r => { - return r.wallet.sendCoinsBatch(r.account, txs, cryptoCode) + const feeMultiplier = settings[`wallets_${tx.cryptoCode}_feeMultiplier`] + return r.wallet.sendCoinsBatch(r.account, txs, cryptoCode, feeMultiplier) .then(res => { mem.clear(module.exports.balance) return res