From 7f4beaa44a9d784d061398923c5b859d5050f321 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Mon, 17 Apr 2017 19:37:13 +0100 Subject: [PATCH] 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. --- src/wallet/wallet2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 941ee8af..d4dfc592 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -1453,7 +1453,7 @@ void wallet2::update_pool_state() std::unordered_map::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) {