diff options
| author | Matt Corallo <[email protected]> | 2017-02-07 11:49:07 -0500 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2017-02-23 15:41:53 -0500 |
| commit | b49ad44efeaff66806d2c142273f70e2a4ddfb9d (patch) | |
| tree | b7860a37c680bfda8d5b2a2069f018d83c12afbc /src/net_processing.cpp | |
| parent | Cache witness-enabled state with recent-compact-block-cache (diff) | |
| download | discoin-b49ad44efeaff66806d2c142273f70e2a4ddfb9d.tar.xz discoin-b49ad44efeaff66806d2c142273f70e2a4ddfb9d.zip | |
Add comment about cs_most_recent_block coverage
Diffstat (limited to 'src/net_processing.cpp')
| -rw-r--r-- | src/net_processing.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<const CBlock> most_recent_block; static std::shared_ptr<const CBlockHeaderAndShortTxIDs> most_recent_compact_block; |