rpc: add version to get_info

This commit is contained in:
Jethro Grassie
2018-11-20 13:18:08 -05:00
parent 84dd674cd0
commit 517f25efd1
5 changed files with 11 additions and 1 deletions

View File

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