aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-03-04 12:40:24 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-03-04 12:41:19 +0000
commitc7dd0b1535d155c6554d745526b003c2d2f45a41 (patch)
tree14e2f5bb0aeed7388cd31df5dd524f65434e156c /src/wallet/wallet2.cpp
parentMerge pull request #1832 (diff)
downloadmonero-c7dd0b1535d155c6554d745526b003c2d2f45a41.tar.xz
Revert "wallet: fix insertion of pool transactions"
This reverts commit d47dac9a88ddd46b88850a899311363b3261c89e. Callers actually expect the key to be payment id, so this needs a lot more changes (like storing payment ids in the structure, and possibly also to other existing structures which do the same thing).
Diffstat (limited to '')
-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 888c158c5..bc182e04b 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(txid, payment);
+ m_unconfirmed_payments.emplace(payment_id, payment);
if (0 != m_callback)
m_callback->on_unconfirmed_money_received(height, txid, tx, payment.m_amount);
}