diff options
author | luigi1111 <luigi1111w@gmail.com> | 2019-07-24 14:18:09 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2019-07-24 14:18:09 -0500 |
commit | e241a6280da0785d40e7cda1c474206d711534a0 (patch) | |
tree | a73ac8f314cb0e4f562faad823cf992c0de552e3 /src/rpc/core_rpc_server_commands_defs.h | |
parent | Merge pull request #5576 (diff) | |
parent | rpc: in/out peers can now return the setting's value (diff) | |
download | monero-e241a6280da0785d40e7cda1c474206d711534a0.tar.xz |
Merge pull request #5582
fcfcc3a rpc: in/out peers can now return the setting's value (moneromooo-monero)
Diffstat (limited to 'src/rpc/core_rpc_server_commands_defs.h')
-rw-r--r-- | src/rpc/core_rpc_server_commands_defs.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/rpc/core_rpc_server_commands_defs.h b/src/rpc/core_rpc_server_commands_defs.h index 6e035fdde..53c975392 100644 --- a/src/rpc/core_rpc_server_commands_defs.h +++ b/src/rpc/core_rpc_server_commands_defs.h @@ -1682,8 +1682,10 @@ namespace cryptonote { struct request_t { - uint64_t out_peers; + bool set; + uint32_t out_peers; BEGIN_KV_SERIALIZE_MAP() + KV_SERIALIZE_OPT(set, true) KV_SERIALIZE(out_peers) END_KV_SERIALIZE_MAP() }; @@ -1691,9 +1693,11 @@ namespace cryptonote struct response_t { + uint32_t out_peers; std::string status; BEGIN_KV_SERIALIZE_MAP() + KV_SERIALIZE(out_peers) KV_SERIALIZE(status) END_KV_SERIALIZE_MAP() }; @@ -1704,8 +1708,10 @@ namespace cryptonote { struct request_t { - uint64_t in_peers; + bool set; + uint32_t in_peers; BEGIN_KV_SERIALIZE_MAP() + KV_SERIALIZE_OPT(set, true) KV_SERIALIZE(in_peers) END_KV_SERIALIZE_MAP() }; @@ -1713,9 +1719,11 @@ namespace cryptonote struct response_t { + uint32_t in_peers; std::string status; BEGIN_KV_SERIALIZE_MAP() + KV_SERIALIZE(in_peers) KV_SERIALIZE(status) END_KV_SERIALIZE_MAP() }; |