rpc: add a busy_syncing field to get_info

true if and pretty much only if new blocks are being added
This commit is contained in:
moneromooo-monero 2020-12-15 20:26:09 +00:00
parent e5decd0cde
commit 5a1ac9c0ef
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
4 changed files with 13 additions and 1 deletions

View file

@ -499,6 +499,7 @@ namespace cryptonote
res.update_available = restricted ? false : m_core.is_update_available();
res.version = restricted ? "" : MONERO_VERSION_FULL;
res.synchronized = check_core_ready();
res.busy_syncing = m_p2p.get_payload_object().is_busy_syncing();
res.status = CORE_RPC_STATUS_OK;
return true;