![]() |
Bitcoin ABC 0.34.5
P2P Digital Currency
|
#include <net.h>#include <net_permissions.h>#include <chrono>#include <cstdint>#include <functional>#include <vector>Go to the source code of this file.
Classes | |
| class | InvRequestTrackerImplInterface |
| Data structure to keep track of, and schedule, inventory downloads from peers. More... | |
| class | InvRequestTracker< InvId > |
| struct | DataRequestParameters |
Functions | |
| template<class InvId > | |
| bool | TooManyAnnouncements (const InvRequestTracker< InvId > &requestTracker, NodeId nodeid, const DataRequestParameters &requestParams, bool bypass_limits) |
| Whether the peer already has too many announcements tracked to accept a new one. | |
| template<class InvId > | |
| std::chrono::microseconds | ComputeRequestTime (const InvRequestTracker< InvId > &requestTracker, NodeId nodeid, const DataRequestParameters &requestParams, std::chrono::microseconds current_time, bool preferred, bool bypass_limits) |
| Compute the request time for this announcement, current time plus delays for: | |
| std::chrono::microseconds ComputeRequestTime | ( | const InvRequestTracker< InvId > & | requestTracker, |
| NodeId | nodeid, | ||
| const DataRequestParameters & | requestParams, | ||
| std::chrono::microseconds | current_time, | ||
| bool | preferred, | ||
| bool | bypass_limits | ||
| ) |
Compute the request time for this announcement, current time plus delays for:
Definition at line 414 of file invrequest.h.
| bool TooManyAnnouncements | ( | const InvRequestTracker< InvId > & | requestTracker, |
| NodeId | nodeid, | ||
| const DataRequestParameters & | requestParams, | ||
| bool | bypass_limits | ||
| ) |
Whether the peer already has too many announcements tracked to accept a new one.
Peers with the bypass_request_limits_permissions permission (bypass_limits = true) are not limited.
Definition at line 396 of file invrequest.h.