mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-25 13:51:05 +02:00
wallet: Remove GetClosestWalletFeature()
This commit is contained in:
@@ -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();
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user