diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2020-06-15 22:57:57 +0100 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2020-08-17 00:06:02 +0100 |
commit | a13cafc6c6998baedf3c5766259c21fcd763b99e (patch) | |
tree | a971c5150941f70f02a5517852f0f5b44c3ae6c2 /src/wallet/wallet.h | |
parent | ffad34816722cdf27a0a7c16539ddd1d655602e0 (diff) |
wallet: GetWalletTx requires cs_wallet lock
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r-- | src/wallet/wallet.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index a761caf38c..558d27fa78 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -793,7 +793,7 @@ public: /** Interface for accessing chain state. */ interfaces::Chain& chain() const { assert(m_chain); return *m_chain; } - const CWalletTx* GetWalletTx(const uint256& hash) const; + const CWalletTx* GetWalletTx(const uint256& hash) 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; } |