[FIX] Apply TXFees before running sendmany
This commit is contained in:
parent
4359b6a649
commit
332aa5aaa4
@ -88,7 +88,7 @@ if ($setting->getValue('disable_manual_payouts') != 1 && $aManualPayouts) {
|
|||||||
$log->logError('Unable to add RPC transaction ID ' . $rpc_txid . ' to transaction record ' . $transaction_id . ': ' . $transaction->getCronError());
|
$log->logError('Unable to add RPC transaction ID ' . $rpc_txid . ' to transaction record ' . $transaction_id . ': ' . $transaction->getCronError());
|
||||||
} else {
|
} else {
|
||||||
// We don't run sendtoaddress but run sendmany later
|
// We don't run sendtoaddress but run sendmany later
|
||||||
$aSendMany[$aUserData['coin_address']] = $aUserData['confirmed'];
|
$aSendMany[$aUserData['coin_address']] = $aUserData['confirmed'] - $config['txfee_manual'];
|
||||||
$aTransactions[] = $transaction_id;
|
$aTransactions[] = $transaction_id;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -155,7 +155,7 @@ if ($setting->getValue('disable_auto_payouts') != 1 && $aAutoPayouts) {
|
|||||||
$log->logError('Unable to add RPC transaction ID ' . $rpc_txid . ' to transaction record ' . $transaction_id . ': ' . $transaction->getCronError());
|
$log->logError('Unable to add RPC transaction ID ' . $rpc_txid . ' to transaction record ' . $transaction_id . ': ' . $transaction->getCronError());
|
||||||
} else {
|
} else {
|
||||||
// We don't run sendtoaddress but run sendmany later
|
// We don't run sendtoaddress but run sendmany later
|
||||||
$aSendMany[$aUserData['coin_address']] = $aUserData['confirmed'];
|
$aSendMany[$aUserData['coin_address']] = $aUserData['confirmed'] - $config['txfee_auto'];
|
||||||
$aTransactions[] = $transaction_id;
|
$aTransactions[] = $transaction_id;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user