diff options
author | Jacob Brydolf <jacob@brydolf.net> | 2016-10-08 00:57:09 +0200 |
---|---|---|
committer | Jacob Brydolf <jacob@brydolf.net> | 2016-10-08 00:57:09 +0200 |
commit | 36a89ab435fc5a2bc7860c6dc2448404ea20dc8e (patch) | |
tree | 0b9569cf0b6e68fc754876cc07129c23bf869252 /src/wallet/api/wallet_manager.cpp | |
parent | Merge pull request #1182 (diff) | |
download | monero-36a89ab435fc5a2bc7860c6dc2448404ea20dc8e.tar.xz |
libwallet_api: Added option to restore from specific height
Diffstat (limited to '')
-rw-r--r-- | src/wallet/api/wallet_manager.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wallet/api/wallet_manager.cpp b/src/wallet/api/wallet_manager.cpp index ca83806ff..aa99476ee 100644 --- a/src/wallet/api/wallet_manager.cpp +++ b/src/wallet/api/wallet_manager.cpp @@ -57,9 +57,12 @@ Wallet *WalletManagerImpl::openWallet(const std::string &path, const std::string return wallet; } -Wallet *WalletManagerImpl::recoveryWallet(const std::string &path, const std::string &memo, bool testnet) +Wallet *WalletManagerImpl::recoveryWallet(const std::string &path, const std::string &memo, bool testnet, uint64_t restoreHeight) { WalletImpl * wallet = new WalletImpl(testnet); + if(restoreHeight > 0){ + wallet->setRefreshFromBlockHeight(restoreHeight); + } wallet->recover(path, memo); return wallet; } |