![]() |
Bitcoin Core 31.1.0
P2P Digital Currency
|
Public Member Functions | |
| bool | operator== (const PeerDoSInfo &other) const |
| void | Add (const Announcement &ann) |
| bool | Subtract (const Announcement &ann) |
| FeeFrac | GetDosScore (TxOrphanage::Count max_peer_latency_score, TxOrphanage::Usage max_peer_memory) const |
| There are 2 DoS scores: | |
Public Attributes | |
| TxOrphanage::Usage | m_total_usage {0} |
| TxOrphanage::Count | m_count_announcements {0} |
| TxOrphanage::Count | m_total_latency_score {0} |
Definition at line 126 of file txorphanage.cpp.
|
inline |
|
inline |
There are 2 DoS scores:
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 162 of file txorphanage.cpp.
|
inline |
Definition at line 130 of file txorphanage.cpp.
|
inline |
| TxOrphanage::Count node::TxOrphanageImpl::PeerDoSInfo::m_count_announcements {0} |
Definition at line 128 of file txorphanage.cpp.
| TxOrphanage::Count node::TxOrphanageImpl::PeerDoSInfo::m_total_latency_score {0} |
Definition at line 129 of file txorphanage.cpp.
| TxOrphanage::Usage node::TxOrphanageImpl::PeerDoSInfo::m_total_usage {0} |
Definition at line 127 of file txorphanage.cpp.