Merge pull request #1201

a8cd656 Wallet API: added setRecoveringFromSeed(); (Jacob Brydolf)
This commit is contained in:
Riccardo Spagni 2016-10-10 20:42:21 +02:00
commit 304c087dd0
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
3 changed files with 12 additions and 0 deletions

View File

@ -416,6 +416,10 @@ void WalletImpl::setRefreshFromBlockHeight(uint64_t refresh_from_block_height)
m_wallet->set_refresh_from_block_height(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 uint64_t WalletImpl::balance() const
{ {

View File

@ -84,6 +84,7 @@ public:
void setAutoRefreshInterval(int millis); void setAutoRefreshInterval(int millis);
int autoRefreshInterval() const; int autoRefreshInterval() const;
void setRefreshFromBlockHeight(uint64_t refresh_from_block_height); void setRefreshFromBlockHeight(uint64_t refresh_from_block_height);
void setRecoveringFromSeed(bool recoveringFromSeed);

View File

@ -226,6 +226,13 @@ struct Wallet
*/ */
virtual void setRefreshFromBlockHeight(uint64_t refresh_from_block_height) = 0; 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 * @brief connectToDaemon - connects to the daemon. TODO: check if it can be removed
* @return * @return