refactor(coinjoin): add GUARDED_BY annotation to mapDSTX (#4789)

This commit is contained in:
PastaPastaPasta 2022-04-25 15:43:30 -05:00 committed by GitHub
parent 40c320cad8
commit 4a209adb1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -373,9 +373,8 @@ private:
(COIN / 1000) + 1,
};
static std::map<uint256, CCoinJoinBroadcastTx> mapDSTX;
static Mutex cs_mapdstx;
static std::map<uint256, CCoinJoinBroadcastTx> mapDSTX GUARDED_BY(cs_mapdstx);
static void CheckDSTXes(const CBlockIndex* pindex) LOCKS_EXCLUDED(cs_mapdstx);