diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-11-30 15:44:01 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-11-30 15:44:01 +0000 |
commit | abebe392c7bb9fb0ff716c9640cd752e579ba068 (patch) | |
tree | 5dc9c65eaec07de869ef590958ce1d388f0fef9f /src/rpc/core_rpc_server.cpp | |
parent | core: make --offline also disable DNS lookups (diff) | |
download | monero-abebe392c7bb9fb0ff716c9640cd752e579ba068.tar.xz |
rpc: add offline state in info rpc
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rw-r--r-- | src/rpc/core_rpc_server.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index e9a6a18aa..336db9073 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -150,6 +150,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; } //------------------------------------------------------------------------------------------------------------------------------ @@ -1330,6 +1331,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; } //------------------------------------------------------------------------------------------------------------------------------ |