diff options
author | Jaquee <jaquee.monero@gmail.com> | 2017-08-05 00:09:06 +0200 |
---|---|---|
committer | Jaquee <jaquee.monero@gmail.com> | 2017-08-05 19:23:55 +0200 |
commit | e31aac80e557cf2c1270f4a80c9890c427b6f45f (patch) | |
tree | 4f2c9db596408aed8d5c97a04ba9917093b8d54d /src/wallet | |
parent | wallet api: pause refresh while commiting tx (diff) | |
download | monero-e31aac80e557cf2c1270f4a80c9890c427b6f45f.tar.xz |
walletAPI: add getRefreshFromBlockHeight()
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/api/wallet.h | 1 | ||||
-rw-r--r-- | src/wallet/wallet2_api.h | 6 |
2 files changed, 7 insertions, 0 deletions
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 @@ -380,6 +380,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 * * \param recoveringFromSeed - true/false |