diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-05-16 20:50:29 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-05-16 20:51:40 +0200 |
commit | a55db4ea1cf10e0ab4a6eb5cd1dd3bd95626fba0 (patch) | |
tree | 934383d6a03318d21103b4aeb5456f46cf40c06a /src/wallet/interfaces.cpp | |
parent | 8cfe93e3fcf263bf059f738d5e7d9c94901a7c5a (diff) | |
download | bitcoin-a55db4ea1cf10e0ab4a6eb5cd1dd3bd95626fba0.tar.xz |
Add more proper thread safety annotations
Diffstat (limited to 'src/wallet/interfaces.cpp')
-rw-r--r-- | src/wallet/interfaces.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/interfaces.cpp b/src/wallet/interfaces.cpp index 98e843385c..49d7d6584b 100644 --- a/src/wallet/interfaces.cpp +++ b/src/wallet/interfaces.cpp @@ -80,7 +80,10 @@ WalletTx MakeWalletTx(CWallet& wallet, const CWalletTx& wtx) //! Construct wallet tx status struct. WalletTxStatus MakeWalletTxStatus(const CWallet& wallet, const CWalletTx& wtx) + EXCLUSIVE_LOCKS_REQUIRED(wallet.cs_wallet) { + AssertLockHeld(wallet.cs_wallet); + WalletTxStatus result; result.block_height = wtx.state<TxStateConfirmed>() ? wtx.state<TxStateConfirmed>()->confirmed_block_height : |