diff options
author | Andrew Chow <achow101-github@achow101.com> | 2020-04-29 16:58:12 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2020-10-19 00:14:38 -0400 |
commit | 5f720544f34dedf75b063b962845fa8eca604514 (patch) | |
tree | a59e9dd8ae7ad9f4232f2670ae7c8bd5540a785b /src/wallet/walletutil.h | |
parent | 842ae3842df489f1b8d68e67a234788966218184 (diff) |
wallet: Add GetClosestWalletFeature function
Given a version number, get the closest supported WalletFeature
for a version number.
Diffstat (limited to 'src/wallet/walletutil.h')
-rw-r--r-- | src/wallet/walletutil.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/walletutil.h b/src/wallet/walletutil.h index b0ab76fc31..27521abd81 100644 --- a/src/wallet/walletutil.h +++ b/src/wallet/walletutil.h @@ -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 |