Changeset View
Changeset View
Standalone View
Standalone View
src/addrman.h
Show First 20 Lines • Show All 223 Lines • ▼ Show 20 Lines | private: | ||||
//! list of "new" buckets | //! list of "new" buckets | ||||
int vvNew[ADDRMAN_NEW_BUCKET_COUNT][ADDRMAN_BUCKET_SIZE] GUARDED_BY(cs); | int vvNew[ADDRMAN_NEW_BUCKET_COUNT][ADDRMAN_BUCKET_SIZE] GUARDED_BY(cs); | ||||
//! last time Good was called (memory only) | //! last time Good was called (memory only) | ||||
int64_t nLastGood GUARDED_BY(cs); | int64_t nLastGood GUARDED_BY(cs); | ||||
//! Holds addrs inserted into tried table that collide with existing | //! Holds addrs inserted into tried table that collide with existing | ||||
//! entries. Test-before-evict discpline used to resolve these collisions. | //! entries. Test-before-evict discipline used to resolve these collisions. | ||||
std::set<int> m_tried_collisions; | std::set<int> m_tried_collisions; | ||||
protected: | protected: | ||||
//! secret key to randomize bucket select with | //! secret key to randomize bucket select with | ||||
uint256 nKey; | uint256 nKey; | ||||
//! Source of random numbers for randomization in inner loops | //! Source of random numbers for randomization in inner loops | ||||
FastRandomContext insecure_rand; | FastRandomContext insecure_rand; | ||||
▲ Show 20 Lines • Show All 427 Lines • Show Last 20 Lines |