diff options
| author | Riccardo Spagni <ric@spagni.net> | 2016-11-01 15:03:08 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2016-11-01 15:03:08 +0200 |
| commit | 77284c026f67af83268fc0ed9bde862f681947ce (patch) | |
| tree | a74a449beceafb542e092076866a6f6cd7aa3b4e /src/simplewallet | |
| parent | 1e153c2fc63b4dafb71b29084612220beec953ae (diff) | |
| parent | 4bfb81a7f56eb819da327a0a4820c0b8c152d0cd (diff) | |
| download | monzero-core-77284c026f67af83268fc0ed9bde862f681947ce.tar.gz monzero-core-77284c026f67af83268fc0ed9bde862f681947ce.tar.xz monzero-core-77284c026f67af83268fc0ed9bde862f681947ce.zip | |
Merge pull request #1275
4bfb81a simplewallet: remove destinations with zero amount in sign_transfer (moneromooo-monero)
Diffstat (limited to 'src/simplewallet')
| -rw-r--r-- | src/simplewallet/simplewallet.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 09c574528..652a5535d 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -3154,6 +3154,8 @@ bool simple_wallet::accept_loaded_tx(const tools::wallet2::unsigned_tx_set &txs) } change = 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; |
