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:
moneromooo-monero
2018-06-18 15:31:34 +01:00
parent 11dbfbc5b3
commit ac9346637a
4 changed files with 23 additions and 2 deletions

View File

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