aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_server_commands_defs.h
diff options
context:
space:
mode:
authorstoffu <stoffu@protonmail.ch>2017-03-19 20:31:38 +0900
committerstoffu <stoffu@protonmail.ch>2017-03-20 09:47:16 +0900
commit8bbcbcfb0db635fce36858cf6dfdebf6c65b681a (patch)
tree78ecda7de3ebc52eaabe2524d97802f117d459e7 /src/wallet/wallet_rpc_server_commands_defs.h
parentMerge pull request #1896 (diff)
downloadmonero-8bbcbcfb0db635fce36858cf6dfdebf6c65b681a.tar.xz
wallet rpc: enable solo mining
Diffstat (limited to 'src/wallet/wallet_rpc_server_commands_defs.h')
-rw-r--r--src/wallet/wallet_rpc_server_commands_defs.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server_commands_defs.h b/src/wallet/wallet_rpc_server_commands_defs.h
index 2ec965b4d..49d1c59fb 100644
--- a/src/wallet/wallet_rpc_server_commands_defs.h
+++ b/src/wallet/wallet_rpc_server_commands_defs.h
@@ -872,5 +872,42 @@ namespace wallet_rpc
};
};
+ struct COMMAND_RPC_START_MINING
+ {
+ struct request
+ {
+ uint64_t threads_count;
+ bool do_background_mining;
+ bool ignore_battery;
+
+ BEGIN_KV_SERIALIZE_MAP()
+ KV_SERIALIZE(threads_count)
+ KV_SERIALIZE(do_background_mining)
+ KV_SERIALIZE(ignore_battery)
+ END_KV_SERIALIZE_MAP()
+ };
+
+ struct response
+ {
+ BEGIN_KV_SERIALIZE_MAP()
+ END_KV_SERIALIZE_MAP()
+ };
+ };
+
+ struct COMMAND_RPC_STOP_MINING
+ {
+ struct request
+ {
+ BEGIN_KV_SERIALIZE_MAP()
+ END_KV_SERIALIZE_MAP()
+ };
+
+ struct response
+ {
+ BEGIN_KV_SERIALIZE_MAP()
+ END_KV_SERIALIZE_MAP()
+ };
+ };
+
}
}