mirror of
https://github.com/monero-project/monero.git
synced 2026-01-15 06:13:28 -08:00
rpc: add a "is an update available" flag in get_info
Make it easier for a user to be told when to update
This commit is contained in:
@@ -208,6 +208,7 @@ namespace cryptonote
|
||||
res.was_bootstrap_ever_used = m_was_bootstrap_ever_used;
|
||||
}
|
||||
res.database_size = m_core.get_blockchain_storage().get_db().get_database_size();
|
||||
res.update_available = m_core.is_update_available();
|
||||
return true;
|
||||
}
|
||||
//------------------------------------------------------------------------------------------------------------------------------
|
||||
@@ -1659,6 +1660,7 @@ namespace cryptonote
|
||||
res.was_bootstrap_ever_used = m_was_bootstrap_ever_used;
|
||||
}
|
||||
res.database_size = m_core.get_blockchain_storage().get_db().get_database_size();
|
||||
res.update_available = m_core.is_update_available();
|
||||
return true;
|
||||
}
|
||||
//------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user