mirror of
https://github.com/monero-project/monero.git
synced 2025-12-30 22:50:54 -08:00
Merge pull request #2878
abebe392rpc: add offline state in info rpc (moneromooo-monero)7696e849core: make --offline also disable DNS lookups (moneromooo-monero)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
//------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user