wallet api/device: set estimated restore height if none is provided
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user