Changeset View
Changeset View
Standalone View
Standalone View
src/net.h
Show First 20 Lines • Show All 713 Lines • ▼ Show 20 Lines | public: | ||||
}; | }; | ||||
// 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; | ||||
// Store the next time we will consider a getavaaddr message from this peer | // Store the next time we will consider a getavaaddr message from this peer | ||||
std::chrono::seconds m_nextGetAvaAddr{0}; | std::chrono::seconds m_nextGetAvaAddr{0}; | ||||
// The version sent in the sendava message | |||||
std::atomic<uint64_t> sendAvaVersion{0}; | |||||
/** | /** | ||||
* 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 | ||||
* connect the block or it eventually fails connection. Used as an inbound | * connect the block or it eventually fails connection. Used as an inbound | ||||
* peer eviction criterium in CConnman::AttemptToEvictConnection. | * peer eviction criterium in CConnman::AttemptToEvictConnection. | ||||
*/ | */ | ||||
std::atomic<std::chrono::seconds> m_last_block_time{0s}; | std::atomic<std::chrono::seconds> m_last_block_time{0s}; | ||||
▲ Show 20 Lines • Show All 788 Lines • Show Last 20 Lines |