diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-17 10:32:26 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-17 10:33:51 +0000 |
commit | 23fb056a72dad63db7504d0fda234359d8d5a19b (patch) | |
tree | 4d0414fd14ba29ddabf7037ea9405e458e004c61 /src/wallet/wallet_rpc_server_commands_defs.h | |
parent | Merge pull request #5249 (diff) | |
download | monero-23fb056a72dad63db7504d0fda234359d8d5a19b.tar.xz |
wallet_rpc_server: new auto_refresh RPC
It can enable/disable auto refresh, and set auto refresh period
Diffstat (limited to 'src/wallet/wallet_rpc_server_commands_defs.h')
-rw-r--r-- | src/wallet/wallet_rpc_server_commands_defs.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server_commands_defs.h b/src/wallet/wallet_rpc_server_commands_defs.h index 546e572bc..8ed6347f4 100644 --- a/src/wallet/wallet_rpc_server_commands_defs.h +++ b/src/wallet/wallet_rpc_server_commands_defs.h @@ -1928,6 +1928,28 @@ namespace wallet_rpc typedef epee::misc_utils::struct_init<response_t> response; }; + struct COMMAND_RPC_AUTO_REFRESH + { + struct request_t + { + bool enable; + uint32_t period; // seconds + + BEGIN_KV_SERIALIZE_MAP() + KV_SERIALIZE_OPT(enable, true) + KV_SERIALIZE_OPT(period, (uint32_t)0) + END_KV_SERIALIZE_MAP() + }; + typedef epee::misc_utils::struct_init<request_t> request; + + struct response_t + { + BEGIN_KV_SERIALIZE_MAP() + END_KV_SERIALIZE_MAP() + }; + typedef epee::misc_utils::struct_init<response_t> response; + }; + struct COMMAND_RPC_START_MINING { struct request_t |