diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -4396,8 +4396,6 @@ } } - uiInterface.LoadWallet(walletInstance); - int prev_version = walletInstance->nWalletVersion; if (gArgs.GetBoolArg("-upgradewallet", fFirstRun)) { int nMaxVersion = gArgs.GetArg("-upgradewallet", 0); @@ -4657,6 +4655,8 @@ } } + uiInterface.LoadWallet(walletInstance); + // Register with the validation interface. It's ok to do this after rescan // since we're still holding cs_main. RegisterValidationInterface(walletInstance.get());