Revert "wallet: fix insertion of pool transactions"

This reverts commit d47dac9a88.

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).
This commit is contained in:
moneromooo-monero 2017-03-04 12:40:24 +00:00
parent 3e761c137d
commit c7dd0b1535
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -1029,7 +1029,7 @@ void wallet2::process_new_transaction(const crypto::hash &txid, const cryptonote
payment.m_unlock_time = tx.unlock_time; payment.m_unlock_time = tx.unlock_time;
payment.m_timestamp = ts; payment.m_timestamp = ts;
if (pool) { if (pool) {
m_unconfirmed_payments.emplace(txid, payment); m_unconfirmed_payments.emplace(payment_id, payment);
if (0 != m_callback) if (0 != m_callback)
m_callback->on_unconfirmed_money_received(height, txid, tx, payment.m_amount); m_callback->on_unconfirmed_money_received(height, txid, tx, payment.m_amount);
} }