wallet: Remove GetClosestWalletFeature()

This commit is contained in:
woltx authored and w0xlt committed 2025-07-25 14:10:32 -07:00
1 parent e27da3150b
commit 63acee2797
2 files changed
-10

No files matched your search

-9
View File
@@ -37,15 +37,6 @@ bool IsFeatureSupported(int wallet_version, int feature_version)
return wallet_version >= feature_version;
}
WalletFeature GetClosestWalletFeature(int version)
{
static constexpr std::array wallet_features{FEATURE_LATEST, FEATURE_PRE_SPLIT_KEYPOOL, FEATURE_NO_DEFAULT_KEY, FEATURE_HD_SPLIT, FEATURE_HD, FEATURE_COMPRPUBKEY, FEATURE_WALLETCRYPT, FEATURE_BASE};
for (const WalletFeature& wf : wallet_features) {
if (version >= wf) return wf;
}
return static_cast<WalletFeature>(0);
}
WalletDescriptor GenerateWalletDescriptor(const CExtPubKey& master_key, const OutputType& addr_type, bool internal)
{
int64_t creation_time = GetTime();
-1
View File
@@ -31,7 +31,6 @@ enum WalletFeature
};
bool IsFeatureSupported(int wallet_version, int feature_version);
WalletFeature GetClosestWalletFeature(int version);
enum WalletFlags : uint64_t {
// wallet flags in the upper section (> 1 << 31) will lead to not opening the wallet if flag is unknown