mirror of
https://github.com/monero-project/monero.git
synced 2026-01-11 04:33:45 -08:00
Fix various oversights/bugs in ZMQ RPC server code
- Add some RPC commands (and touch up a couple others) - some bounds checking - some better pointer management - const correctness and error handling -- Thanks @vtnerd for type help with serialization and CMake changes
This commit is contained in:
@@ -53,7 +53,7 @@ rapidjson::Value Message::toJson(rapidjson::Document& doc) const
|
||||
|
||||
val.AddMember("status", rapidjson::StringRef(status.c_str()), al);
|
||||
val.AddMember("error_details", rapidjson::StringRef(error_details.c_str()), al);
|
||||
INSERT_INTO_JSON_OBJECT(val, doc, rpc_version, DAEMON_RPC_VERSION);
|
||||
INSERT_INTO_JSON_OBJECT(val, doc, rpc_version, DAEMON_RPC_VERSION_ZMQ);
|
||||
|
||||
return val;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user