mirror of
https://github.com/monero-project/monero.git
synced 2024-12-24 12:39:59 +00:00
core_rpc_server: replace vector<bool> with vector<int> in RPC
vector<bool> causes issues in serialization with Boost 1.56
This commit is contained in:
parent
01e81205e0
commit
d87a2d2bb2
2 changed files with 6 additions and 2 deletions
|
@ -259,12 +259,16 @@ namespace cryptonote
|
||||||
}
|
}
|
||||||
key_images.push_back(*reinterpret_cast<const crypto::key_image*>(b.data()));
|
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)
|
if(!r)
|
||||||
{
|
{
|
||||||
res.status = "Failed";
|
res.status = "Failed";
|
||||||
return true;
|
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;
|
res.status = CORE_RPC_STATUS_OK;
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -131,7 +131,7 @@ namespace cryptonote
|
||||||
|
|
||||||
struct response
|
struct response
|
||||||
{
|
{
|
||||||
std::vector<bool> spent_status;
|
std::vector<int> spent_status;
|
||||||
std::string status;
|
std::string status;
|
||||||
|
|
||||||
BEGIN_KV_SERIALIZE_MAP()
|
BEGIN_KV_SERIALIZE_MAP()
|
||||||
|
|
Loading…
Reference in a new issue