mirror of
https://github.com/monero-project/monero.git
synced 2025-05-19 21:50:24 -04:00
wallet api/device: set estimated restore height if none is provided
This commit is contained in:
parent
e344d93ce7
commit
13785ec96b
4 changed files with 15 additions and 0 deletions
|
@ -127,6 +127,8 @@ Wallet *WalletManagerImpl::createWalletFromDevice(const std::string &path,
|
|||
WalletImpl * wallet = new WalletImpl(nettype, kdf_rounds);
|
||||
if(restoreHeight > 0){
|
||||
wallet->setRefreshFromBlockHeight(restoreHeight);
|
||||
} else {
|
||||
wallet->setRefreshFromBlockHeight(wallet->estimateBlockChainHeight());
|
||||
}
|
||||
auto lookahead = tools::parse_subaddress_lookahead(subaddressLookahead);
|
||||
if (lookahead)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue