wallet: Avoid showing GUI popups on RPC errors (take 2)

This commit is contained in:
MarcoFalke committed 2019-11-11 13:50:26 -05:00
1 parent 8021392b82
commit faffa7f0dc
1 file changed
-2
-2
View File
@@ -3651,9 +3651,7 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(interfaces::Chain& chain,
}
if (auto spk_man = walletInstance->m_spk_man.get()) {
std::string error;
if (!spk_man->Upgrade(prev_version, error)) {
chain.initError(error);
return nullptr;
}
}