Merge pull request #1989

7f4beaa4 wallet2: fix removal of wrong txes from unconfirmed_payments (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2017-04-24 10:50:54 +02:00
commit 999b0f399d
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -1461,7 +1461,7 @@ void wallet2::update_pool_state()
std::unordered_map<crypto::hash, wallet2::payment_details>::iterator uit = m_unconfirmed_payments.begin();
while (uit != m_unconfirmed_payments.end())
{
const crypto::hash &txid = uit->first;
const crypto::hash &txid = uit->second.m_tx_hash;
bool found = false;
for (const auto &it2: res.tx_hashes)
{