aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.cpp
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2017-02-07 11:49:07 -0500
committerMatt Corallo <git@bluematt.me>2017-02-23 15:41:53 -0500
commitb49ad44efeaff66806d2c142273f70e2a4ddfb9d (patch)
treeb7860a37c680bfda8d5b2a2069f018d83c12afbc /src/net_processing.cpp
parentc47f5b798233a0083d71ce033f7c044267af70f1 (diff)
Add comment about cs_most_recent_block coverage
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r--src/net_processing.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index 23a856f5e5..3971ac17d2 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -771,6 +771,7 @@ void PeerLogicValidation::SyncTransaction(const CTransaction& tx, const CBlockIn
}
}
+// All of the following cache a recent block, and are protected by cs_most_recent_block
static CCriticalSection cs_most_recent_block;
static std::shared_ptr<const CBlock> most_recent_block;
static std::shared_ptr<const CBlockHeaderAndShortTxIDs> most_recent_compact_block;