aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/wallet_manager.cpp
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2020-02-11 23:27:30 +0000
committerxiphon <xiphon@protonmail.com>2020-02-11 23:36:50 +0000
commitcc18926ebab0c117b88a08da19bac14021fa4c2d (patch)
tree44066a92f235a625021f714eb1132d0012911da4 /src/wallet/api/wallet_manager.cpp
parentMerge pull request #6145 (diff)
downloadmonero-cc18926ebab0c117b88a08da19bac14021fa4c2d.tar.xz
wallet2_api: wallet recovery - seed offset passphrase support
Diffstat (limited to 'src/wallet/api/wallet_manager.cpp')
-rw-r--r--src/wallet/api/wallet_manager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wallet/api/wallet_manager.cpp b/src/wallet/api/wallet_manager.cpp
index d589dcc75..44a184304 100644
--- a/src/wallet/api/wallet_manager.cpp
+++ b/src/wallet/api/wallet_manager.cpp
@@ -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;
}