Skip to content

Commit

Permalink
wip update PeerManagerImpl doxygen comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ajtowns committed Feb 11, 2021
1 parent e72a889 commit 4f9931d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/net_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -523,25 +523,26 @@ class PeerManagerImpl final : public PeerManager
std::unique_ptr<CRollingBloomFilter> recentRejects GUARDED_BY(cs_main);
uint256 hashRecentRejectsChainTip GUARDED_BY(cs_main);

/*
/**
* Filter for transactions that have been recently confirmed.
* We use this to avoid requesting transactions that have already been
* confirnmed.
* confirmed.
*/
Mutex m_recent_confirmed_transactions_mutex;
std::unique_ptr<CRollingBloomFilter> m_recent_confirmed_transactions GUARDED_BY(m_recent_confirmed_transactions_mutex);

/* Returns a bool indicating whether we requested this block.
/** Returns a bool indicating whether we requested this block.
* Also used if a block was /not/ received and timed out or started with another peer
*/
bool MarkBlockAsReceived(const uint256& hash) EXCLUSIVE_LOCKS_REQUIRED(cs_main);

/* Mark a block as in flight
/** Mark a block as in flight
* Returns false, still setting pit, if the block was already in flight from the same peer
* pit will only be valid as long as the same cs_main lock is being held
*/
bool MarkBlockAsInFlight(NodeId nodeid, const uint256& hash, const CBlockIndex* pindex = nullptr, std::list<QueuedBlock>::iterator** pit = nullptr) EXCLUSIVE_LOCKS_REQUIRED(cs_main);

/** Determine if tip may be stale based on when last blocks was received */
bool TipMayBeStale() EXCLUSIVE_LOCKS_REQUIRED(cs_main);

/** Update pindexLastCommonBlock and add not-in-flight missing successors to vBlocks, until it has
Expand Down

0 comments on commit 4f9931d

Please sign in to comment.