aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.cpp
diff options
context:
space:
mode:
authorMarcoFalke <[email protected]>2018-08-31 08:32:29 -0400
committerMarcoFalke <[email protected]>2018-08-31 08:32:31 -0400
commitbdbd654df8ddf5945256f2ccf85feae620f6f0d5 (patch)
tree9a7693f6bbaf93b543015046dedfd08e5fd2033f /src/net_processing.cpp
parentMerge #14073: blockfilter: Avoid out-of-bounds script access. (diff)
parenttests: Add missing locking annotations and locks (diff)
downloaddiscoin-bdbd654df8ddf5945256f2ccf85feae620f6f0d5.tar.xz
discoin-bdbd654df8ddf5945256f2ccf85feae620f6f0d5.zip
Merge #14108: tests: Add missing locking annotations and locks (g_cs_orphans)
b602c9b3af tests: Add missing locking annotations and locks (practicalswift) Pull request description: Add missing locking annotations and locks. `mapOrphanTransactions` is guarded by `g_cs_orphans`. Tree-SHA512: f95104fbef23bd385e754c6bea3c3bdddd8a9c6a68e719d761227c9be1e46ff1316ec050a15a1243218dbab4e8584da6674f4a72f949f54b0a758392f19c83f8
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r--src/net_processing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index a6a8814df..9f950831c 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -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);