Merge pull request #1275

4bfb81a simplewallet: remove destinations with zero amount in sign_transfer (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2016-11-01 15:03:08 +02:00
commit 77284c026f
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
1 changed files with 2 additions and 0 deletions

View File

@ -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;