aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/core_rpc_server.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-12-16 23:27:00 +0200
committerRiccardo Spagni <ric@spagni.net>2017-12-16 23:27:00 +0200
commit8da24c2a57fdb9a04137537f3e339e1876407d8d (patch)
treefb45239aebb9b13d52d3e13862f1c9dc636217a2 /src/rpc/core_rpc_server.cpp
parentMerge pull request #2874 (diff)
parentrpc: add offline state in info rpc (diff)
downloadmonero-8da24c2a57fdb9a04137537f3e339e1876407d8d.tar.xz
Merge pull request #2878
abebe392 rpc: add offline state in info rpc (moneromooo-monero) 7696e849 core: make --offline also disable DNS lookups (moneromooo-monero)
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rw-r--r--src/rpc/core_rpc_server.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp
index 34c7afa6d..c2206c89a 100644
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -152,6 +152,7 @@ namespace cryptonote
res.status = CORE_RPC_STATUS_OK;
res.start_time = (uint64_t)m_core.get_start_time();
res.free_space = m_restricted ? std::numeric_limits<uint64_t>::max() : m_core.get_free_space();
+ res.offline = m_core.offline();
return true;
}
//------------------------------------------------------------------------------------------------------------------------------
@@ -1332,6 +1333,7 @@ namespace cryptonote
res.status = CORE_RPC_STATUS_OK;
res.start_time = (uint64_t)m_core.get_start_time();
res.free_space = m_restricted ? std::numeric_limits<uint64_t>::max() : m_core.get_free_space();
+ res.offline = m_core.offline();
return true;
}
//------------------------------------------------------------------------------------------------------------------------------