diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-10-27 16:13:46 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-10-27 16:14:28 +0000 |
commit | 2f8f3a9432a23264329d6532d4ef630272ac2f56 (patch) | |
tree | 7094b6a37e6da024cb14519f278329b691f797f0 | |
parent | Merge pull request #6036 (diff) | |
download | monero-2f8f3a9432a23264329d6532d4ef630272ac2f56.tar.xz |
rpc: base flush_cache request/response on the new base structs
-rw-r--r-- | src/rpc/core_rpc_server_commands_defs.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/rpc/core_rpc_server_commands_defs.h b/src/rpc/core_rpc_server_commands_defs.h index 855ea854c..d38f6b183 100644 --- a/src/rpc/core_rpc_server_commands_defs.h +++ b/src/rpc/core_rpc_server_commands_defs.h @@ -2556,22 +2556,21 @@ namespace cryptonote struct COMMAND_RPC_FLUSH_CACHE { - struct request_t + struct request_t: public rpc_request_base { bool bad_txs; BEGIN_KV_SERIALIZE_MAP() + KV_SERIALIZE_PARENT(rpc_request_base) KV_SERIALIZE_OPT(bad_txs, false) END_KV_SERIALIZE_MAP() }; typedef epee::misc_utils::struct_init<request_t> request; - struct response_t + struct response_t: public rpc_response_base { - std::string status; - BEGIN_KV_SERIALIZE_MAP() - KV_SERIALIZE(status) + KV_SERIALIZE_PARENT(rpc_response_base) END_KV_SERIALIZE_MAP() }; typedef epee::misc_utils::struct_init<response_t> response; |