diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-01-05 21:57:43 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-01-05 22:16:24 +0000 |
commit | a44d94d390158a04db9bfd84bacd5ca1d7233ba0 (patch) | |
tree | a7d619810f867a637f527647c422c9004f152af1 /src/wallet/wallet2.cpp | |
parent | Merge branch 'LMDB-tweaks' (diff) | |
download | monero-a44d94d390158a04db9bfd84bacd5ca1d7233ba0.tar.xz |
rpc: is_key_image_spent now checks the tx pool too
Diffstat (limited to 'src/wallet/wallet2.cpp')
-rw-r--r-- | src/wallet/wallet2.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index bceea367f..c6f287016 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -1419,15 +1419,15 @@ void wallet2::rescan_spent() for (size_t i = 0; i < m_transfers.size(); ++i) { transfer_details& td = m_transfers[i]; - if (td.m_spent != daemon_resp.spent_status[i]) + if (td.m_spent != (daemon_resp.spent_status[i] != COMMAND_RPC_IS_KEY_IMAGE_SPENT::UNSPENT)) { if (td.m_spent) { - LOG_PRINT_L1("Marking output " << i << " as unspent, it was marked as spent"); + LOG_PRINT_L0("Marking output " << i << "(" << td.m_key_image << ") as unspent, it was marked as spent"); } else { - LOG_PRINT_L1("Marking output " << i << " as spent, it was marked as unspent"); + LOG_PRINT_L0("Marking output " << i << "(" << td.m_key_image << ") as spent, it was marked as unspent"); } td.m_spent = daemon_resp.spent_status[i]; } |