Merge pull request #2878

abebe392 rpc: add offline state in info rpc (moneromooo-monero)
7696e849 core: make --offline also disable DNS lookups (moneromooo-monero)
This commit is contained in:
Riccardo Spagni
2017-12-16 23:27:00 +02:00
7 changed files with 42 additions and 13 deletions

View File

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