Skip to content

Commit 95fedd3

Browse files
maskoficarusmaskoficarus
authored andcommitted
refactor: Clean up -Wlogical-op warning
This commit fixes #19912 by removing a check that always returned true. That check was causing a -Wlogical-op warning because it treated a constant int as though it were a boolean.
1 parent b99a163 commit 95fedd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/scriptpubkeyman.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ bool LegacyScriptPubKeyMan::Upgrade(int prev_version, bilingual_str& error)
452452
hd_upgrade = true;
453453
}
454454
// Upgrade to HD chain split if necessary
455-
if (m_storage.CanSupportFeature(FEATURE_HD_SPLIT) && CHDChain::VERSION_HD_CHAIN_SPLIT) {
455+
if (m_storage.CanSupportFeature(FEATURE_HD_SPLIT)) {
456456
WalletLogPrintf("Upgrading wallet to use HD chain split\n");
457457
m_storage.SetMinVersion(FEATURE_PRE_SPLIT_KEYPOOL);
458458
split_upgrade = FEATURE_HD_SPLIT > prev_version;

0 commit comments

Comments
 (0)