mirror of
https://github.com/monero-project/monero.git
synced 2026-01-16 14:53:00 -08:00
Change ZMQ-JSON txextra to hex and remove unnecessary base fields
This commit is contained in:
@@ -35,7 +35,7 @@ namespace rpc
|
||||
{
|
||||
|
||||
static const uint32_t DAEMON_RPC_VERSION_ZMQ_MINOR = 0;
|
||||
static const uint32_t DAEMON_RPC_VERSION_ZMQ_MAJOR = 1;
|
||||
static const uint32_t DAEMON_RPC_VERSION_ZMQ_MAJOR = 2;
|
||||
|
||||
static const uint32_t DAEMON_RPC_VERSION_ZMQ = DAEMON_RPC_VERSION_ZMQ_MINOR + (DAEMON_RPC_VERSION_ZMQ_MAJOR << 16);
|
||||
|
||||
|
||||
@@ -65,8 +65,6 @@ const rapidjson::Value& get_method_field(const rapidjson::Value& src)
|
||||
void Message::toJson(rapidjson::Writer<epee::byte_stream>& dest) const
|
||||
{
|
||||
dest.StartObject();
|
||||
INSERT_INTO_JSON_OBJECT(dest, status, status);
|
||||
INSERT_INTO_JSON_OBJECT(dest, error_details, error_details);
|
||||
INSERT_INTO_JSON_OBJECT(dest, rpc_version, DAEMON_RPC_VERSION_ZMQ);
|
||||
doToJson(dest);
|
||||
dest.EndObject();
|
||||
@@ -74,8 +72,6 @@ void Message::toJson(rapidjson::Writer<epee::byte_stream>& dest) const
|
||||
|
||||
void Message::fromJson(const rapidjson::Value& val)
|
||||
{
|
||||
GET_FROM_JSON_OBJECT(val, status, status);
|
||||
GET_FROM_JSON_OBJECT(val, error_details, error_details);
|
||||
GET_FROM_JSON_OBJECT(val, rpc_version, rpc_version);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user