Changeset View
Changeset View
Standalone View
Standalone View
src/net.h
Show First 20 Lines • Show All 1,012 Lines • ▼ Show 20 Lines | public: | ||||
struct AvalancheState { | struct AvalancheState { | ||||
AvalancheState() {} | AvalancheState() {} | ||||
CPubKey pubkey; | CPubKey pubkey; | ||||
}; | }; | ||||
// m_avalanche_state == nullptr if we're not using avalanche with this peer | // m_avalanche_state == nullptr if we're not using avalanche with this peer | ||||
std::unique_ptr<AvalancheState> m_avalanche_state; | std::unique_ptr<AvalancheState> | ||||
m_avalanche_state GUARDED_BY(cs_avalanche_state); | |||||
Mutex cs_avalanche_state; | |||||
// Used for headers announcements - unfiltered blocks to relay | // Used for headers announcements - unfiltered blocks to relay | ||||
std::vector<BlockHash> vBlockHashesToAnnounce GUARDED_BY(cs_inventory); | std::vector<BlockHash> vBlockHashesToAnnounce GUARDED_BY(cs_inventory); | ||||
/** | /** | ||||
* UNIX epoch time of the last block received from this peer that we had | * UNIX epoch time of the last block received from this peer that we had | ||||
* not yet seen (e.g. not already received from another peer), that passed | * not yet seen (e.g. not already received from another peer), that passed | ||||
* preliminary validity checks and was saved to disk, even if we don't | * preliminary validity checks and was saved to disk, even if we don't | ||||
▲ Show 20 Lines • Show All 214 Lines • Show Last 20 Lines |