aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-02-28 21:19:24 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-02-28 21:19:24 +0000
commitd47dac9a88ddd46b88850a899311363b3261c89e (patch)
treee259a9d7b1ad1b0cf5e91c335fcaddb7fb18e18f /src/wallet/wallet2.cpp
parentMerge pull request #1798 (diff)
downloadmonero-d47dac9a88ddd46b88850a899311363b3261c89e.tar.xz
wallet: fix insertion of pool transactions
They were inserted using payment id as key, not txid
Diffstat (limited to 'src/wallet/wallet2.cpp')
-rw-r--r--src/wallet/wallet2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index 7b42458c0..354417876 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -1044,7 +1044,7 @@ void wallet2::process_new_transaction(const cryptonote::transaction& tx, const s
payment.m_unlock_time = tx.unlock_time;
payment.m_timestamp = ts;
if (pool) {
- m_unconfirmed_payments.emplace(payment_id, payment);
+ m_unconfirmed_payments.emplace(txid(), payment);
if (0 != m_callback)
m_callback->on_unconfirmed_money_received(height, tx, payment.m_amount);
}