diff --git a/src/keystore.h b/src/keystore.h --- a/src/keystore.h +++ b/src/keystore.h @@ -57,7 +57,8 @@ ScriptMap mapScripts; WatchOnlySet setWatchOnly; - void ImplicitlyLearnRelatedKeyScripts(const CPubKey &pubkey); + void ImplicitlyLearnRelatedKeyScripts(const CPubKey &pubkey) + EXCLUSIVE_LOCKS_REQUIRED(cs_KeyStore); public: bool AddKeyPubKey(const CKey &key, const CPubKey &pubkey) override;