diff options
author | NanoAkron <nanoakron@users.noreply.github.com> | 2016-10-03 02:06:55 +0100 |
---|---|---|
committer | NanoAkron <nanoakron@users.noreply.github.com> | 2016-10-03 02:06:55 +0100 |
commit | 6390673137955a158ac3a8082d7f47ff4a03c7fd (patch) | |
tree | 0e9308aafba3c05bb02ae31b661363f1b08eac2a /src/daemon/rpc_command_executor.cpp | |
parent | Merge pull request #1124 (diff) | |
download | monero-6390673137955a158ac3a8082d7f47ff4a03c7fd.tar.xz |
Removed all code related to fast_exit
Diffstat (limited to '')
-rw-r--r-- | src/daemon/rpc_command_executor.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp index 67e51398c..998d36600 100644 --- a/src/daemon/rpc_command_executor.cpp +++ b/src/daemon/rpc_command_executor.cpp @@ -989,34 +989,6 @@ bool t_rpc_command_executor::set_limit_down(int limit) return true; } -bool t_rpc_command_executor::fast_exit() -{ - cryptonote::COMMAND_RPC_FAST_EXIT::request req; - cryptonote::COMMAND_RPC_FAST_EXIT::response res; - - std::string fail_message = "Daemon did not stop"; - - if (m_is_rpc) - { - if (!m_rpc_client->rpc_request(req, res, "/fast_exit", fail_message.c_str())) - { - return true; - } - } - - else - { - if (!m_rpc_server->on_fast_exit(req, res) || res.status != CORE_RPC_STATUS_OK) - { - tools::fail_msg_writer() << fail_message.c_str(); - return true; - } - } - - tools::success_msg_writer() << "Daemon stopped"; - return true; -} - bool t_rpc_command_executor::out_peers(uint64_t limit) { cryptonote::COMMAND_RPC_OUT_PEERS::request req; |