wallet2: fix removal of wrong txes from unconfirmed_payments

unconfirmed_payments changed from having the txid as key to
the payment id, and this was not changed to match.
This commit is contained in:
moneromooo-monero 2017-04-17 19:37:13 +01:00
parent 9ed496bbc5
commit 7f4beaa44a
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 1 additions and 1 deletions

View File

@ -1453,7 +1453,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)
{