simplewallet: remove destinations with zero amount in sign_transfer

This will happen when sending to another address, after removing
the fee.
pull/95/head
moneromooo-monero 8 years ago
parent 83b0511731
commit 4bfb81a7f5
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

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

Loading…
Cancel
Save