Skip to content

Commit

Permalink
Add comment about cs_most_recent_block coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed Feb 23, 2017
1 parent c47f5b7 commit b49ad44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/net_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b49ad44

Please sign in to comment.