aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-03-03 14:30:24 +0200
committerRiccardo Spagni <ric@spagni.net>2017-03-03 14:30:24 +0200
commit2f9ecd4fbaf3efff573440279692560dbdeb02de (patch)
tree0aa23cf2ac62fb741913130b8248b21db4a597c2
parentMerge pull request #1820 (diff)
parentwallet: fix insertion of pool transactions (diff)
downloadmonero-2f9ecd4fbaf3efff573440279692560dbdeb02de.tar.xz
Merge pull request #1823
d47dac9a wallet: fix insertion of pool transactions (moneromooo-monero)
-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 095a321da..3c9d2406a 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -1029,7 +1029,7 @@ void wallet2::process_new_transaction(const crypto::hash &txid, const cryptonote
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, txid, tx, payment.m_amount);
}