From 81d94478f285be5b90af16690e442f44f8279a4f Mon Sep 17 00:00:00 2001 From: m2049r Date: Sun, 10 Mar 2019 21:49:57 +0100 Subject: [PATCH] update wallet api (#554) --- app/build.gradle | 4 ++-- external-libs/monero/include/wallet2_api.h | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 91d952fd..d53b1728 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -7,8 +7,8 @@ android { applicationId "com.m2049r.xmrwallet" minSdkVersion 21 targetSdkVersion 28 - versionCode 173 - versionName "1.11.3 'Chernushka'" + versionCode 174 + versionName "1.11.4 'Chernushka'" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" externalNativeBuild { diff --git a/external-libs/monero/include/wallet2_api.h b/external-libs/monero/include/wallet2_api.h index ec1a8487..ad6735ce 100644 --- a/external-libs/monero/include/wallet2_api.h +++ b/external-libs/monero/include/wallet2_api.h @@ -574,6 +574,12 @@ struct Wallet */ virtual uint64_t approximateBlockChainHeight() const = 0; + /** + * @brief estimateBlockChainHeight - returns estimate blockchain height. More accurate than approximateBlockChainHeight, + * uses daemon height and falls back to calculation from date/time + * @return + **/ + virtual uint64_t estimateBlockChainHeight() const = 0; /** * @brief daemonBlockChainHeight - returns daemon blockchain height * @return 0 - in case error communicating with the daemon.