mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-03 09:56:38 -05:00
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.
This commit is contained in:
parent
b99a1633b2
commit
95fedd33a2
1 changed files with 1 additions and 1 deletions
|
@ -452,7 +452,7 @@ bool LegacyScriptPubKeyMan::Upgrade(int prev_version, bilingual_str& error)
|
||||||
hd_upgrade = true;
|
hd_upgrade = true;
|
||||||
}
|
}
|
||||||
// Upgrade to HD chain split if necessary
|
// Upgrade to HD chain split if necessary
|
||||||
if (m_storage.CanSupportFeature(FEATURE_HD_SPLIT) && CHDChain::VERSION_HD_CHAIN_SPLIT) {
|
if (m_storage.CanSupportFeature(FEATURE_HD_SPLIT)) {
|
||||||
WalletLogPrintf("Upgrading wallet to use HD chain split\n");
|
WalletLogPrintf("Upgrading wallet to use HD chain split\n");
|
||||||
m_storage.SetMinVersion(FEATURE_PRE_SPLIT_KEYPOOL);
|
m_storage.SetMinVersion(FEATURE_PRE_SPLIT_KEYPOOL);
|
||||||
split_upgrade = FEATURE_HD_SPLIT > prev_version;
|
split_upgrade = FEATURE_HD_SPLIT > prev_version;
|
||||||
|
|
Loading…
Add table
Reference in a new issue