Changeset View
Changeset View
Standalone View
Standalone View
src/net.h
Show First 20 Lines • Show All 1,312 Lines • ▼ Show 20 Lines | struct NodeEvictionCandidate { | ||||
int64_t nLastProofTime; | int64_t nLastProofTime; | ||||
int64_t nLastTXTime; | int64_t nLastTXTime; | ||||
bool fRelevantServices; | bool fRelevantServices; | ||||
bool fRelayTxes; | bool fRelayTxes; | ||||
bool fBloomFilter; | bool fBloomFilter; | ||||
uint64_t nKeyedNetGroup; | uint64_t nKeyedNetGroup; | ||||
bool prefer_evict; | bool prefer_evict; | ||||
bool m_is_local; | bool m_is_local; | ||||
double availabilityScore; | |||||
}; | }; | ||||
[[nodiscard]] std::optional<NodeId> | [[nodiscard]] std::optional<NodeId> | ||||
SelectNodeToEvict(std::vector<NodeEvictionCandidate> &&vEvictionCandidates); | SelectNodeToEvict(std::vector<NodeEvictionCandidate> &&vEvictionCandidates); | ||||
#endif // BITCOIN_NET_H | #endif // BITCOIN_NET_H |