wallet2_api: wallet recovery - seed offset passphrase support

This commit is contained in:
xiphon 2020-02-11 23:27:30 +00:00
parent 51873fec04
commit cc18926eba
5 changed files with 14 additions and 6 deletions

View file

@ -93,13 +93,14 @@ Wallet *WalletManagerImpl::recoveryWallet(const std::string &path,
const std::string &mnemonic,
NetworkType nettype,
uint64_t restoreHeight,
uint64_t kdf_rounds)
uint64_t kdf_rounds,
const std::string &seed_offset/* = {}*/)
{
WalletImpl * wallet = new WalletImpl(nettype, kdf_rounds);
if(restoreHeight > 0){
wallet->setRefreshFromBlockHeight(restoreHeight);
}
wallet->recover(path, password, mnemonic);
wallet->recover(path, password, mnemonic, seed_offset);
return wallet;
}