Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.cpp
Show First 20 Lines • Show All 142 Lines • ▼ Show 20 Lines | struct QueuedBlock { | ||||
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; | std::list<NodeId> lNodesAnnouncingHeaderAndIDs GUARDED_BY(cs_main); | ||||
/** Number of preferable block download peers. */ | /** Number of preferable block download peers. */ | ||||
int nPreferredDownload GUARDED_BY(cs_main) = 0; | int nPreferredDownload GUARDED_BY(cs_main) = 0; | ||||
/** Number of peers from which we're downloading blocks. */ | /** Number of peers from which we're downloading blocks. */ | ||||
int nPeersWithValidatedDownloads GUARDED_BY(cs_main) = 0; | int nPeersWithValidatedDownloads GUARDED_BY(cs_main) = 0; | ||||
/** Number of outbound peers with m_chain_sync.m_protect. */ | /** Number of outbound peers with m_chain_sync.m_protect. */ | ||||
int g_outbound_peers_with_protect_from_disconnect = 0; | int g_outbound_peers_with_protect_from_disconnect GUARDED_BY(cs_main) = 0; | ||||
/** When our tip was last updated. */ | /** When our tip was last updated. */ | ||||
std::atomic<int64_t> g_last_tip_update(0); | std::atomic<int64_t> g_last_tip_update(0); | ||||
/** Relay map. */ | /** Relay map. */ | ||||
typedef std::map<uint256, CTransactionRef> MapRelay; | typedef std::map<uint256, CTransactionRef> MapRelay; | ||||
MapRelay mapRelay GUARDED_BY(cs_main); | MapRelay mapRelay GUARDED_BY(cs_main); | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 4,294 Lines • Show Last 20 Lines |