diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index 0b1b7803e..6c4a0712f 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -1826,6 +1826,7 @@ namespace cryptonote res.blocktemplate_blob = string_tools::buff_to_hex_nodelimer(block_blob); res.blockhashing_blob = string_tools::buff_to_hex_nodelimer(hashing_blob); res.status = CORE_RPC_STATUS_OK; + res.vote = 0; return true; } //------------------------------------------------------------------------------------------------------------------------------ diff --git a/src/rpc/core_rpc_server_commands_defs.h b/src/rpc/core_rpc_server_commands_defs.h index 1e593f0ea..d71925df9 100644 --- a/src/rpc/core_rpc_server_commands_defs.h +++ b/src/rpc/core_rpc_server_commands_defs.h @@ -919,6 +919,7 @@ namespace cryptonote blobdata blocktemplate_blob; blobdata blockhashing_blob; uint64_t unlock_height; + uint16_t vote; BEGIN_KV_SERIALIZE_MAP() KV_SERIALIZE_PARENT(rpc_response_base) @@ -935,6 +936,7 @@ namespace cryptonote KV_SERIALIZE(seed_hash) KV_SERIALIZE(next_seed_hash) KV_SERIALIZE(unlock_height) + KV_SERIALIZE(vote) END_KV_SERIALIZE_MAP() }; typedef epee::misc_utils::struct_init response;