mirror of
https://github.com/monero-project/monero.git
synced 2025-05-19 21:40:23 -04:00
wallet2_api: wallet recovery - seed offset passphrase support
This commit is contained in:
parent
51873fec04
commit
cc18926eba
5 changed files with 14 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue