diff options
author | Riccardo Spagni <ric@spagni.net> | 2015-08-13 20:04:27 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2015-08-13 20:04:31 +0200 |
commit | 7792255968c1d20268466281fffed598e8d3f0b4 (patch) | |
tree | b6557f31c7229a0e788224c794fcdd44c176b2e1 /src/rpc/core_rpc_server.cpp | |
parent | Merge pull request #368 (diff) | |
parent | core_rpc_server: replace vector<bool> with vector<int> in RPC (diff) | |
download | monero-7792255968c1d20268466281fffed598e8d3f0b4.tar.xz |
Merge pull request #369
d87a2d2 core_rpc_server: replace vector<bool> with vector<int> in RPC (moneromooo-monero)
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rw-r--r-- | src/rpc/core_rpc_server.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index d5d907276..80bd7e6cd 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -283,12 +283,16 @@ namespace cryptonote } key_images.push_back(*reinterpret_cast<const crypto::key_image*>(b.data())); } - bool r = m_core.are_key_images_spent(key_images, res.spent_status); + std::vector<bool> spent_status; + bool r = m_core.are_key_images_spent(key_images, spent_status); if(!r) { res.status = "Failed"; return true; } + res.spent_status.clear(); + for (size_t n = 0; n < spent_status.size(); ++n) + res.spent_status.push_back(spent_status[n]); res.status = CORE_RPC_STATUS_OK; return true; |