mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-23 18:32:45 +02:00
wallet: Avoid showing GUI popups on RPC errors (take 2)
This commit is contained in:
parent
8021392b82
commit
faffa7f0dc
@ -3651,9 +3651,7 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(interfaces::Chain& chain,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (auto spk_man = walletInstance->m_spk_man.get()) {
|
if (auto spk_man = walletInstance->m_spk_man.get()) {
|
||||||
std::string error;
|
|
||||||
if (!spk_man->Upgrade(prev_version, error)) {
|
if (!spk_man->Upgrade(prev_version, error)) {
|
||||||
chain.initError(error);
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user