|
|
|
@ -4086,7 +4086,7 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(interfaces::Chain& chain,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
auto locked_chain = chain.assumeLocked(); // Temporary. Removed in upcoming lock cleanup
|
|
|
|
|
walletInstance->ChainStateFlushed(locked_chain->getLocator());
|
|
|
|
|
walletInstance->ChainStateFlushed(locked_chain->getTipLocator());
|
|
|
|
|
} else if (wallet_creation_flags & WALLET_FLAG_DISABLE_PRIVATE_KEYS) {
|
|
|
|
|
// Make it impossible to disable private keys after creation
|
|
|
|
|
InitError(strprintf(_("Error loading %s: Private keys can only be disabled during creation"), walletFile));
|
|
|
|
@ -4233,7 +4233,7 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(interfaces::Chain& chain,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
walletInstance->WalletLogPrintf("Rescan completed in %15dms\n", GetTimeMillis() - nStart);
|
|
|
|
|
walletInstance->ChainStateFlushed(locked_chain->getLocator());
|
|
|
|
|
walletInstance->ChainStateFlushed(locked_chain->getTipLocator());
|
|
|
|
|
walletInstance->database->IncrementUpdateCounter();
|
|
|
|
|
|
|
|
|
|
// Restore wallet transaction metadata after -zapwallettxes=1
|
|
|
|
|