Skip to content

Commit f381299

Browse files
committed
Move CKeyStore::cs_KeyStore to CBasicKeyStore
1 parent 25eb9f5 commit f381299

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

doc/developer-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ inconsistencies reported in the debug.log file.
218218

219219
Re-architecting the core code so there are better-defined interfaces
220220
between the various components is a goal, with any necessary locking
221-
done by the components (e.g. see the self-contained CKeyStore class
221+
done by the components (e.g. see the self-contained CBasicKeyStore class
222222
and its cs_KeyStore lock for example).
223223

224224
Threads

src/keystore.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
/** A virtual base class for key stores */
1818
class CKeyStore
1919
{
20-
protected:
21-
mutable CCriticalSection cs_KeyStore;
22-
2320
public:
2421
virtual ~CKeyStore() {}
2522

@@ -54,6 +51,8 @@ typedef std::set<CScript> WatchOnlySet;
5451
class CBasicKeyStore : public CKeyStore
5552
{
5653
protected:
54+
mutable CCriticalSection cs_KeyStore;
55+
5756
KeyMap mapKeys;
5857
WatchKeyMap mapWatchKeys;
5958
ScriptMap mapScripts;

0 commit comments

Comments
 (0)