We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e8aa02 commit 3d985d4Copy full SHA for 3d985d4
src/wallet/scriptpubkeyman.cpp
@@ -469,6 +469,12 @@ bool LegacyScriptPubKeyMan::CanGetAddresses(bool internal) const
469
bool LegacyScriptPubKeyMan::Upgrade(int prev_version, int new_version, bilingual_str& error)
470
{
471
LOCK(cs_KeyStore);
472
+
473
+ if (m_storage.IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS)) {
474
+ // Nothing to do here if private keys are not enabled
475
+ return true;
476
+ }
477
478
bool hd_upgrade = false;
479
bool split_upgrade = false;
480
if (IsFeatureSupported(new_version, FEATURE_HD) && !IsHDEnabled()) {
0 commit comments