mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
p2p: Use mocktime for ping timeout
This commit is contained in:
@@ -942,7 +942,7 @@ public:
|
||||
std::chrono::microseconds PoissonNextSendInbound(std::chrono::microseconds now, std::chrono::seconds average_interval);
|
||||
|
||||
/** Return true if we should disconnect the peer for failing an inactivity check. */
|
||||
bool ShouldRunInactivityChecks(const CNode& node, std::optional<int64_t> now=std::nullopt) const;
|
||||
bool ShouldRunInactivityChecks(const CNode& node, int64_t secs_now) const;
|
||||
|
||||
private:
|
||||
struct ListenSocket {
|
||||
|
||||
Reference in New Issue
Block a user