Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.cpp
Show First 20 Lines • Show All 195 Lines • ▼ Show 20 Lines | |||||
std::unique_ptr<CRollingBloomFilter> recentRejects GUARDED_BY(cs_main); | std::unique_ptr<CRollingBloomFilter> recentRejects GUARDED_BY(cs_main); | ||||
uint256 hashRecentRejectsChainTip GUARDED_BY(cs_main); | uint256 hashRecentRejectsChainTip GUARDED_BY(cs_main); | ||||
/** | /** | ||||
* Blocks that are in flight, and that are in the queue to be downloaded. | * Blocks that are in flight, and that are in the queue to be downloaded. | ||||
*/ | */ | ||||
struct QueuedBlock { | struct QueuedBlock { | ||||
uint256 hash; | uint256 hash; | ||||
//!< Optional. | //! Optional. | ||||
const CBlockIndex *pindex; | const CBlockIndex *pindex; | ||||
//!< Whether this block has validated headers at the time of request. | //! Whether this block has validated headers at the time of request. | ||||
bool fValidatedHeaders; | bool fValidatedHeaders; | ||||
//!< Optional, used for CMPCTBLOCK downloads | //! Optional, used for CMPCTBLOCK downloads | ||||
std::unique_ptr<PartiallyDownloadedBlock> partialBlock; | std::unique_ptr<PartiallyDownloadedBlock> partialBlock; | ||||
}; | }; | ||||
std::map<uint256, std::pair<NodeId, std::list<QueuedBlock>::iterator>> | std::map<uint256, std::pair<NodeId, std::list<QueuedBlock>::iterator>> | ||||
mapBlocksInFlight GUARDED_BY(cs_main); | mapBlocksInFlight GUARDED_BY(cs_main); | ||||
/** Stack of nodes which we have set to announce using compact blocks */ | /** Stack of nodes which we have set to announce using compact blocks */ | ||||
std::list<NodeId> lNodesAnnouncingHeaderAndIDs GUARDED_BY(cs_main); | std::list<NodeId> lNodesAnnouncingHeaderAndIDs GUARDED_BY(cs_main); | ||||
▲ Show 20 Lines • Show All 4,547 Lines • Show Last 20 Lines |