mirror of
https://github.com/monero-project/monero.git
synced 2026-01-03 08:18:15 -08:00
rpc: add version to get_info
This commit is contained in:
@@ -210,6 +210,7 @@ namespace cryptonote
|
||||
}
|
||||
res.database_size = m_core.get_blockchain_storage().get_db().get_database_size();
|
||||
res.update_available = m_core.is_update_available();
|
||||
res.version = m_restricted ? "" : MONERO_VERSION;
|
||||
return true;
|
||||
}
|
||||
//------------------------------------------------------------------------------------------------------------------------------
|
||||
@@ -1609,6 +1610,7 @@ namespace cryptonote
|
||||
}
|
||||
res.database_size = m_core.get_blockchain_storage().get_db().get_database_size();
|
||||
res.update_available = m_core.is_update_available();
|
||||
res.version = m_restricted ? "" : MONERO_VERSION;
|
||||
return true;
|
||||
}
|
||||
//------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user