diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-10-10 20:42:21 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-10-10 20:42:21 +0200 |
commit | 304c087dd0f2432e797768feb4851d3d7327cb9d (patch) | |
tree | 52b06dfffd6727afa322afb2af458f52a235f693 /src | |
parent | Merge pull request #1195 (diff) | |
parent | Wallet API: added setRecoveringFromSeed(); (diff) | |
download | monero-304c087dd0f2432e797768feb4851d3d7327cb9d.tar.xz |
Merge pull request #1201
a8cd656 Wallet API: added setRecoveringFromSeed(); (Jacob Brydolf)
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/api/wallet.cpp | 4 | ||||
-rw-r--r-- | src/wallet/api/wallet.h | 1 | ||||
-rw-r--r-- | src/wallet/wallet2_api.h | 7 |
3 files changed, 12 insertions, 0 deletions
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp index 674670b16..d1c849537 100644 --- a/src/wallet/api/wallet.cpp +++ b/src/wallet/api/wallet.cpp @@ -416,6 +416,10 @@ void WalletImpl::setRefreshFromBlockHeight(uint64_t refresh_from_block_height) m_wallet->set_refresh_from_block_height(refresh_from_block_height); } +void WalletImpl::setRecoveringFromSeed(bool recoveringFromSeed) +{ + m_recoveringFromSeed = recoveringFromSeed; +} uint64_t WalletImpl::balance() const { diff --git a/src/wallet/api/wallet.h b/src/wallet/api/wallet.h index 8ce475d1c..c8a59f7c3 100644 --- a/src/wallet/api/wallet.h +++ b/src/wallet/api/wallet.h @@ -84,6 +84,7 @@ public: void setAutoRefreshInterval(int millis); int autoRefreshInterval() const; void setRefreshFromBlockHeight(uint64_t refresh_from_block_height); + void setRecoveringFromSeed(bool recoveringFromSeed); diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h index 742a904ea..0f622c26c 100644 --- a/src/wallet/wallet2_api.h +++ b/src/wallet/wallet2_api.h @@ -226,6 +226,13 @@ struct Wallet */ virtual void setRefreshFromBlockHeight(uint64_t refresh_from_block_height) = 0; + /*! + * \brief setRecoveringFromSeed - set state recover form seed + * + * \param recoveringFromSeed - true/false + */ + virtual void setRecoveringFromSeed(bool recoveringFromSeed) = 0; + /** * @brief connectToDaemon - connects to the daemon. TODO: check if it can be removed * @return |