blockchain_height added to get_version

pull/5/head
moneroexamples 7 years ago
parent 9a7236d6b0
commit 6c4b5d29ea

@ -13,6 +13,7 @@ thinwalletCtrls.controller('TempCtrl', function ($scope, $http) {
$scope.version = "Open Monero version: "
+ data.last_git_commit_date + "-" + data.last_git_commit_hash
+ " | Monero version: " + data.monero_version_full
+ " | Blockchain height: " + data.blockchain_height
})
.error(function(data) {

@ -743,6 +743,8 @@ YourMoneroRequests::get_version(const shared_ptr< Session > session, const Bytes
{"last_git_commit_hash", string {GIT_COMMIT_HASH}},
{"last_git_commit_date", string {GIT_COMMIT_DATETIME}},
{"monero_version_full" , string {MONERO_VERSION_FULL}},
{"monero_version_full" , string {MONERO_VERSION_FULL}},
{"blockchain_height" , get_current_blockchain_height()}
};
string response_body = j_response.dump();

Loading…
Cancel
Save