Merge pull request #369

d87a2d2 core_rpc_server: replace vector<bool> with vector<int> in RPC (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2015-08-13 20:04:27 +02:00
commit 7792255968
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
2 changed files with 6 additions and 2 deletions

View File

@ -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;

View File

@ -131,7 +131,7 @@ namespace cryptonote
struct response
{
std::vector<bool> spent_status;
std::vector<int> spent_status;
std::string status;
BEGIN_KV_SERIALIZE_MAP()