@@ -788,7 +788,7 @@ class CWallet final : public CCryptoKeyStore, public CValidationInterface
788788 int64_t nOrderPosNext GUARDED_BY (cs_wallet) = 0;
789789 uint64_t nAccountingEntryNumber = 0 ;
790790
791- std::map<CTxDestination, CAddressBookData> mapAddressBook;
791+ std::map<CTxDestination, CAddressBookData> mapAddressBook GUARDED_BY (cs_wallet) ;
792792
793793 std::set<COutPoint> setLockedCoins GUARDED_BY (cs_wallet);
794794
@@ -865,15 +865,15 @@ class CWallet final : public CCryptoKeyStore, public CValidationInterface
865865 bool LoadCScript (const CScript& redeemScript);
866866
867867 // ! Adds a destination data tuple to the store, and saves it to disk
868- bool AddDestData (const CTxDestination & dest, const std::string & key, const std::string & value);
868+ bool AddDestData (const CTxDestination& dest, const std::string& key, const std::string& value) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet );
869869 // ! Erases a destination data tuple in the store and on disk
870- bool EraseDestData (const CTxDestination & dest, const std::string & key);
870+ bool EraseDestData (const CTxDestination& dest, const std::string& key) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet );
871871 // ! Adds a destination data tuple to the store, without saving it to disk
872- void LoadDestData (const CTxDestination & dest, const std::string & key, const std::string & value);
872+ void LoadDestData (const CTxDestination& dest, const std::string& key, const std::string& value) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet );
873873 // ! Look up a destination data tuple in the store, return true if found false otherwise
874- bool GetDestData (const CTxDestination & dest, const std::string & key, std::string * value) const ;
874+ bool GetDestData (const CTxDestination& dest, const std::string& key, std::string* value) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) ;
875875 // ! Get all destination values matching a prefix.
876- std::vector<std::string> GetDestValues (const std::string& prefix) const ;
876+ std::vector<std::string> GetDestValues (const std::string& prefix) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) ;
877877
878878 // ! Adds a watch-only address to the store, and saves it to disk.
879879 bool AddWatchOnly (const CScript& dest, int64_t nCreateTime) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
@@ -1041,7 +1041,7 @@ class CWallet final : public CCryptoKeyStore, public CValidationInterface
10411041
10421042 bool DelAddressBook (const CTxDestination& address);
10431043
1044- const std::string& GetLabelName (const CScript& scriptPubKey) const ;
1044+ const std::string& GetLabelName (const CScript& scriptPubKey) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) ;
10451045
10461046 void GetScriptForMining (std::shared_ptr<CReserveScript> &script);
10471047
0 commit comments