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:
@@ -34,10 +34,10 @@ namespace cryptonote
|
||||
namespace rpc
|
||||
{
|
||||
|
||||
static const uint32_t DAEMON_RPC_VERSION_MINOR = 0;
|
||||
static const uint32_t DAEMON_RPC_VERSION_MAJOR = 1;
|
||||
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 = DAEMON_RPC_VERSION_MINOR + (DAEMON_RPC_VERSION_MAJOR << 16);
|
||||
static const uint32_t DAEMON_RPC_VERSION_ZMQ = DAEMON_RPC_VERSION_ZMQ_MINOR + (DAEMON_RPC_VERSION_ZMQ_MAJOR << 16);
|
||||
|
||||
} // namespace rpc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user