aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/walletutil.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2020-04-29 16:58:12 -0400
committerAndrew Chow <achow101-github@achow101.com>2020-10-19 00:14:38 -0400
commit5f720544f34dedf75b063b962845fa8eca604514 (patch)
treea59e9dd8ae7ad9f4232f2670ae7c8bd5540a785b /src/wallet/walletutil.h
parent842ae3842df489f1b8d68e67a234788966218184 (diff)
downloadbitcoin-5f720544f34dedf75b063b962845fa8eca604514.tar.xz
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.h1
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