rpc: add offline state in info rpc

This commit is contained in:
moneromooo-monero
2017-11-30 15:44:01 +00:00
parent 7696e84952
commit abebe392c7
2 changed files with 5 additions and 1 deletions

View File

@@ -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;
}
//------------------------------------------------------------------------------------------------------------------------------