Skip to content

Commit b49ad44

Browse files
committed
Add comment about cs_most_recent_block coverage
1 parent c47f5b7 commit b49ad44

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/net_processing.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,7 @@ void PeerLogicValidation::SyncTransaction(const CTransaction& tx, const CBlockIn
771771
}
772772
}
773773

774+
// All of the following cache a recent block, and are protected by cs_most_recent_block
774775
static CCriticalSection cs_most_recent_block;
775776
static std::shared_ptr<const CBlock> most_recent_block;
776777
static std::shared_ptr<const CBlockHeaderAndShortTxIDs> most_recent_compact_block;

0 commit comments

Comments
 (0)