Log when we use fee=0 for small inputs
This commit is contained in:
@@ -197,9 +197,10 @@ bool AsyncRPCOperation_sweep::main_impl() {
|
|||||||
|
|
||||||
CAmount fee = fSweepTxFee;
|
CAmount fee = fSweepTxFee;
|
||||||
if (amountToSend <= fSweepTxFee) {
|
if (amountToSend <= fSweepTxFee) {
|
||||||
fee = 0;
|
LogPrintf("%s: Amount to send %s is <= fee, using fee=0", getId(), FormatMoney(amountToSend));
|
||||||
|
fee = 0;
|
||||||
}
|
}
|
||||||
amountSwept += amountToSend;
|
|
||||||
auto builder = TransactionBuilder(consensusParams, targetHeight_, pwalletMain);
|
auto builder = TransactionBuilder(consensusParams, targetHeight_, pwalletMain);
|
||||||
{
|
{
|
||||||
LOCK2(cs_main, pwalletMain->cs_wallet);
|
LOCK2(cs_main, pwalletMain->cs_wallet);
|
||||||
|
|||||||
Reference in New Issue
Block a user