mirror of
https://github.com/monero-project/monero.git
synced 2025-05-20 03:10:24 -04:00
libwallet_api: Added option to restore from specific height
This commit is contained in:
parent
9798bde11e
commit
36a89ab435
5 changed files with 20 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue