diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-08-17 08:37:56 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-08-17 08:37:56 +0100 |
commit | 25f529aa670908b32ce5e6a5167fa7b5f71c8371 (patch) | |
tree | 5233c904856a55dd235eb874aae2d2d6545e0193 | |
parent | Merge pull request #963 (diff) | |
download | monero-25f529aa670908b32ce5e6a5167fa7b5f71c8371.tar.xz |
wallet: store key images after importing them
It avoids rescan_spent resetting spent status, for example.
-rw-r--r-- | src/wallet/wallet2.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 922409519..bce3eb675 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -3502,6 +3502,9 @@ uint64_t wallet2::import_key_images(const std::vector<std::pair<crypto::key_imag req.key_images.push_back(epee::string_tools::pod_to_hex(key_image)); } + for (size_t n = 0; n < signed_key_images.size(); ++n) + m_transfers[n].m_key_image = signed_key_images[n].first; + m_daemon_rpc_mutex.lock(); bool r = epee::net_utils::invoke_http_json_remote_command2(m_daemon_address + "/is_key_image_spent", req, daemon_resp, m_http_client, 200000); m_daemon_rpc_mutex.unlock(); |