Skip to content
Permalink
Browse files

Merge pull request #5526

1e8f3f6 rpc: fail update RPC when running offline (moneromooo-monero)
  • Loading branch information...
luigi1111 committed May 14, 2019
2 parents 1fc1c73 + 1e8f3f6 commit 5a67ff2b322616269d699eb47730a8ff604ea71d
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/rpc/core_rpc_server.cpp
@@ -2107,6 +2107,13 @@ namespace cryptonote
bool core_rpc_server::on_update(const COMMAND_RPC_UPDATE::request& req, COMMAND_RPC_UPDATE::response& res, const connection_context *ctx)
{
PERF_TIMER(on_update);

if (m_core.offline())
{
res.status = "Daemon is running offline";
return true;
}

static const char software[] = "monero";
#ifdef BUILD_TAG
static const char buildtag[] = BOOST_PP_STRINGIZE(BUILD_TAG);

0 comments on commit 5a67ff2

Please sign in to comment.
You can’t perform that action at this time.