From e31aac80e557cf2c1270f4a80c9890c427b6f45f Mon Sep 17 00:00:00 2001 From: Jaquee Date: Sat, 5 Aug 2017 00:09:06 +0200 Subject: walletAPI: add getRefreshFromBlockHeight() --- src/wallet/api/wallet.h | 1 + src/wallet/wallet2_api.h | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/src/wallet/api/wallet.h b/src/wallet/api/wallet.h index e9e2cc580..07b0f063b 100644 --- a/src/wallet/api/wallet.h +++ b/src/wallet/api/wallet.h @@ -98,6 +98,7 @@ public: void setAutoRefreshInterval(int millis); int autoRefreshInterval() const; void setRefreshFromBlockHeight(uint64_t refresh_from_block_height); + uint64_t getRefreshFromBlockHeight() const { return m_wallet->get_refresh_from_block_height(); }; void setRecoveringFromSeed(bool recoveringFromSeed); bool watchOnly() const; bool rescanSpent(); diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h index a136954f0..27ad79816 100644 --- a/src/wallet/wallet2_api.h +++ b/src/wallet/wallet2_api.h @@ -379,6 +379,12 @@ struct Wallet */ virtual void setRefreshFromBlockHeight(uint64_t refresh_from_block_height) = 0; + /*! + * \brief getRestoreHeight - get wallet creation height + * + */ + virtual uint64_t getRefreshFromBlockHeight() const = 0; + /*! * \brief setRecoveringFromSeed - set state recover form seed * -- cgit v1.2.3