Skip to content

Commit

Permalink
Add a lock cs_desc_man for DescriptorScriptPubKeyMan
Browse files Browse the repository at this point in the history
  • Loading branch information
achow101 committed Apr 23, 2020
1 parent 3194a7f commit d813266
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wallet/scriptpubkeyman.h
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,8 @@ class DescriptorScriptPubKeyMan : public ScriptPubKeyMan
public:
using ScriptPubKeyMan::ScriptPubKeyMan;

mutable RecursiveMutex cs_desc_man;

bool GetNewDestination(const OutputType type, CTxDestination& dest, std::string& error) override;
isminetype IsMine(const CScript& script) const override;

Expand Down

0 comments on commit d813266

Please sign in to comment.