mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
simplewallet: remove destinations with zero amount in sign_transfer
This will happen when sending to another address, after removing the fee.
This commit is contained in:
parent
83b0511731
commit
4bfb81a7f5
1 changed files with 2 additions and 0 deletions
|
@ -3154,6 +3154,8 @@ bool simple_wallet::accept_loaded_tx(const tools::wallet2::unsigned_tx_set &txs)
|
||||||
}
|
}
|
||||||
change = cd.change_dts.amount;
|
change = cd.change_dts.amount;
|
||||||
it->second -= cd.change_dts.amount;
|
it->second -= cd.change_dts.amount;
|
||||||
|
if (it->second == 0)
|
||||||
|
dests.erase(get_account_address_as_str(m_wallet->testnet(), cd.change_dts.addr));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
std::string dest_string;
|
std::string dest_string;
|
||||||
|
|
Loading…
Reference in a new issue