mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-22 23:42:24 +00:00
Merge pull request #5308
a7211793
rpc: quantize db size up to 5 GB in restricted mode (moneromooo-monero)
This commit is contained in:
commit
97831e5f8b
1 changed files with 3 additions and 1 deletions
|
@ -1755,7 +1755,9 @@ namespace cryptonote
|
|||
boost::shared_lock<boost::shared_mutex> lock(m_bootstrap_daemon_mutex);
|
||||
res.was_bootstrap_ever_used = m_was_bootstrap_ever_used;
|
||||
}
|
||||
res.database_size = restricted ? 0 : m_core.get_blockchain_storage().get_db().get_database_size();
|
||||
res.database_size = m_core.get_blockchain_storage().get_db().get_database_size();
|
||||
if (restricted)
|
||||
res.database_size = round_up(res.database_size, 5ull * 1024 * 1024 * 1024);
|
||||
res.update_available = restricted ? false : m_core.is_update_available();
|
||||
res.version = restricted ? "" : MONERO_VERSION;
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue