Definition at line 125 of file txorphanage.cpp.
◆ Add()
void node::TxOrphanageImpl::PeerDoSInfo::Add |
( |
const Announcement & |
ann | ) |
|
|
inline |
◆ GetDosScore()
There are 2 DoS scores:
- Latency score (ratio of total latency score / max allowed latency score)
- Memory score (ratio of total memory usage / max allowed memory usage).
If the peer is using more than the allowed for either resource, its DoS score is > 1. A peer having a DoS score > 1 does not necessarily mean that something is wrong, since we do not trim unless the orphanage exceeds global limits, but it means that this peer will be selected for trimming sooner. If the global latency score or global memory usage limits are exceeded, it must be that there is a peer whose DoS score > 1.
Definition at line 161 of file txorphanage.cpp.
◆ operator==()
bool node::TxOrphanageImpl::PeerDoSInfo::operator== |
( |
const PeerDoSInfo & |
other | ) |
const |
|
inline |
◆ Subtract()
bool node::TxOrphanageImpl::PeerDoSInfo::Subtract |
( |
const Announcement & |
ann | ) |
|
|
inline |
◆ m_count_announcements
◆ m_total_latency_score
◆ m_total_usage
The documentation for this struct was generated from the following file: