wallet: Add GetClosestWalletFeature function

Given a version number, get the closest supported WalletFeature
for a version number.
This commit is contained in:
Andrew Chow
2020-04-29 16:58:12 -04:00
parent 842ae3842d
commit 5f720544f3
2 changed files with 14 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ 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