aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2020-04-29 14:48:43 -0400
committerAndrew Chow <achow101-github@achow101.com>2020-10-19 00:14:38 -0400
commit842ae3842df489f1b8d68e67a234788966218184 (patch)
treea286b538fb449090f2b894e5c0b32110a554bb07 /src/wallet/wallet.h
parenta1e0359618e3a66d0156d2b0a4702bc55f957a3f (diff)
downloadbitcoin-842ae3842df489f1b8d68e67a234788966218184.tar.xz
wallet: Add utility method for CanSupportFeature
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r--src/wallet/wallet.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index 245144a1c9..fcff0c557b 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -801,7 +801,7 @@ public:
bool IsTrusted(const CWalletTx& wtx, std::set<uint256>& trusted_parents) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
//! check whether we are allowed to upgrade (or already support) to the named feature
- bool CanSupportFeature(enum WalletFeature wf) const override EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) { AssertLockHeld(cs_wallet); return nWalletMaxVersion >= wf; }
+ bool CanSupportFeature(enum WalletFeature wf) const override EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) { AssertLockHeld(cs_wallet); return IsFeatureSupported(nWalletMaxVersion, wf); }
/**
* populate vCoins with vector of available COutputs.