From 6c4b5d29ea4c43962f8dfce412859e2f9c943760 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Sun, 26 Feb 2017 08:51:10 +0800 Subject: [PATCH] blockchain_height added to get_version --- html/js/controllers/temp.js | 1 + src/YourMoneroRequests.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/html/js/controllers/temp.js b/html/js/controllers/temp.js index 6bbef1f..da374d7 100755 --- a/html/js/controllers/temp.js +++ b/html/js/controllers/temp.js @@ -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) { diff --git a/src/YourMoneroRequests.cpp b/src/YourMoneroRequests.cpp index f0432a2..e3d2a0d 100644 --- a/src/YourMoneroRequests.cpp +++ b/src/YourMoneroRequests.cpp @@ -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();