From a8cd65646c078d66b57ed062b100f38813d4f7e7 Mon Sep 17 00:00:00 2001 From: Jacob Brydolf Date: Mon, 10 Oct 2016 19:34:25 +0200 Subject: [PATCH] Wallet API: added setRecoveringFromSeed(); --- src/wallet/api/wallet.cpp | 4 ++++ src/wallet/api/wallet.h | 1 + src/wallet/wallet2_api.h | 7 +++++++ 3 files changed, 12 insertions(+) diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp index 674670b1..d1c84953 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 8ce475d1..c8a59f7c 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 742a904e..0f622c26 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