|
|
|
@ -84,7 +84,7 @@ namespace cryptonote
|
|
|
|
|
// advance which version they will stop working with
|
|
|
|
|
// Don't go over 32767 for any of these
|
|
|
|
|
#define CORE_RPC_VERSION_MAJOR 2
|
|
|
|
|
#define CORE_RPC_VERSION_MINOR 4
|
|
|
|
|
#define CORE_RPC_VERSION_MINOR 5
|
|
|
|
|
#define MAKE_CORE_RPC_VERSION(major,minor) (((major)<<16)|(minor))
|
|
|
|
|
#define CORE_RPC_VERSION MAKE_CORE_RPC_VERSION(CORE_RPC_VERSION_MAJOR, CORE_RPC_VERSION_MINOR)
|
|
|
|
|
|
|
|
|
@ -102,11 +102,13 @@ namespace cryptonote
|
|
|
|
|
uint64_t height;
|
|
|
|
|
std::string status;
|
|
|
|
|
bool untrusted;
|
|
|
|
|
std::string hash;
|
|
|
|
|
|
|
|
|
|
BEGIN_KV_SERIALIZE_MAP()
|
|
|
|
|
KV_SERIALIZE(height)
|
|
|
|
|
KV_SERIALIZE(status)
|
|
|
|
|
KV_SERIALIZE(untrusted)
|
|
|
|
|
KV_SERIALIZE(hash)
|
|
|
|
|
END_KV_SERIALIZE_MAP()
|
|
|
|
|
};
|
|
|
|
|
typedef epee::misc_utils::struct_init<response_t> response;
|
|
|
|
|