aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/core_rpc_server.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-06-18 15:31:34 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-09-14 09:28:03 +0000
commitac9346637a353851610f028239b2df7762341d35 (patch)
tree7db0cb513bec4201058e7d687589940e2c2b2d6c /src/rpc/core_rpc_server.cpp
parentMerge pull request #4342 (diff)
downloadmonero-ac9346637a353851610f028239b2df7762341d35.tar.xz
rpc: add a "is an update available" flag in get_info
Make it easier for a user to be told when to update
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rw-r--r--src/rpc/core_rpc_server.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp
index 4383ad190..411e677a0 100644
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -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;
}
//------------------------------------------------------------------------------------------------------------------------------