@@ -657,7 +657,7 @@ class CWallet final : public CCryptoKeyStore, public CValidationInterface
657
657
void DeriveNewChildKey (WalletBatch &batch, CKeyMetadata& metadata, CKey& secret, bool internal = false ) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
658
658
659
659
std::set<int64_t > setInternalKeyPool;
660
- std::set<int64_t > setExternalKeyPool;
660
+ std::set<int64_t > setExternalKeyPool GUARDED_BY (cs_wallet) ;
661
661
std::set<int64_t > set_pre_split_keypool;
662
662
int64_t m_max_keypool_index GUARDED_BY (cs_wallet) = 0;
663
663
std::map<CKeyID, int64_t > m_pool_key_to_index;
@@ -726,13 +726,13 @@ class CWallet final : public CCryptoKeyStore, public CValidationInterface
726
726
const std::string& GetName () const { return m_name; }
727
727
728
728
void LoadKeyPool (int64_t nIndex, const CKeyPool &keypool) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
729
- void MarkPreSplitKeys ();
729
+ void MarkPreSplitKeys () EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) ;
730
730
731
731
// Map from Key ID to key metadata.
732
- std::map<CKeyID, CKeyMetadata> mapKeyMetadata;
732
+ std::map<CKeyID, CKeyMetadata> mapKeyMetadata GUARDED_BY (cs_wallet) ;
733
733
734
734
// Map from Script ID to key metadata (for watch-only keys).
735
- std::map<CScriptID, CKeyMetadata> m_script_metadata;
735
+ std::map<CScriptID, CKeyMetadata> m_script_metadata GUARDED_BY (cs_wallet) ;
736
736
737
737
typedef std::map<unsigned int , CMasterKey> MasterKeyMap;
738
738
MasterKeyMap mapMasterKeys;
@@ -759,7 +759,7 @@ class CWallet final : public CCryptoKeyStore, public CValidationInterface
759
759
760
760
std::map<CTxDestination, CAddressBookData> mapAddressBook;
761
761
762
- std::set<COutPoint> setLockedCoins;
762
+ std::set<COutPoint> setLockedCoins GUARDED_BY (cs_wallet) ;
763
763
764
764
const CWalletTx* GetWalletTx (const uint256& hash) const ;
765
765
0 commit comments