rpc: base flush_cache request/response on the new base structs
This commit is contained in:
parent
b928ead30e
commit
2f8f3a9432
|
@ -2556,22 +2556,21 @@ namespace cryptonote
|
||||||
|
|
||||||
struct COMMAND_RPC_FLUSH_CACHE
|
struct COMMAND_RPC_FLUSH_CACHE
|
||||||
{
|
{
|
||||||
struct request_t
|
struct request_t: public rpc_request_base
|
||||||
{
|
{
|
||||||
bool bad_txs;
|
bool bad_txs;
|
||||||
|
|
||||||
BEGIN_KV_SERIALIZE_MAP()
|
BEGIN_KV_SERIALIZE_MAP()
|
||||||
|
KV_SERIALIZE_PARENT(rpc_request_base)
|
||||||
KV_SERIALIZE_OPT(bad_txs, false)
|
KV_SERIALIZE_OPT(bad_txs, false)
|
||||||
END_KV_SERIALIZE_MAP()
|
END_KV_SERIALIZE_MAP()
|
||||||
};
|
};
|
||||||
typedef epee::misc_utils::struct_init<request_t> request;
|
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()
|
BEGIN_KV_SERIALIZE_MAP()
|
||||||
KV_SERIALIZE(status)
|
KV_SERIALIZE_PARENT(rpc_response_base)
|
||||||
END_KV_SERIALIZE_MAP()
|
END_KV_SERIALIZE_MAP()
|
||||||
};
|
};
|
||||||
typedef epee::misc_utils::struct_init<response_t> response;
|
typedef epee::misc_utils::struct_init<response_t> response;
|
||||||
|
|
Loading…
Reference in New Issue