aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/walletutil.cpp
diff options
context:
space:
mode:
authorAndrew Chow <[email protected]>2020-04-29 14:48:43 -0400
committerAndrew Chow <[email protected]>2020-10-19 00:14:38 -0400
commit842ae3842df489f1b8d68e67a234788966218184 (patch)
treea286b538fb449090f2b894e5c0b32110a554bb07 /src/wallet/walletutil.cpp
parentMerge #19986: refactor: clean up -Wlogical-op warning in wallet/scriptpubkeym... (diff)
downloaddiscoin-842ae3842df489f1b8d68e67a234788966218184.tar.xz
discoin-842ae3842df489f1b8d68e67a234788966218184.zip
wallet: Add utility method for CanSupportFeature
Diffstat (limited to 'src/wallet/walletutil.cpp')
-rw-r--r--src/wallet/walletutil.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wallet/walletutil.cpp b/src/wallet/walletutil.cpp
index a2a55f975..9ac90a21c 100644
--- a/src/wallet/walletutil.cpp
+++ b/src/wallet/walletutil.cpp
@@ -70,3 +70,8 @@ std::vector<fs::path> ListWalletDir()
return paths;
}
+
+bool IsFeatureSupported(int wallet_version, int feature_version)
+{
+ return wallet_version >= feature_version;
+}