From b49ad44efeaff66806d2c142273f70e2a4ddfb9d Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 7 Feb 2017 11:49:07 -0500 Subject: [PATCH] Add comment about cs_most_recent_block coverage --- src/net_processing.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 23a856f5e..3971ac17d 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 most_recent_block; static std::shared_ptr most_recent_compact_block;