tests: Add missing locking annotations and locks

This commit is contained in:
practicalswift
2018-08-30 16:33:02 +02:00
parent 07033a8f91
commit b602c9b3af
2 changed files with 5 additions and 4 deletions

View File

@@ -70,7 +70,7 @@ struct COrphanTx {
NodeId fromPeer;
int64_t nTimeExpire;
};
static CCriticalSection g_cs_orphans;
CCriticalSection g_cs_orphans;
std::map<uint256, COrphanTx> mapOrphanTransactions GUARDED_BY(g_cs_orphans);
void EraseOrphansFor(NodeId peer);