mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-08 05:39:38 +02:00
p2p: Use mocktime for ping timeout
This commit is contained in:
@@ -17,6 +17,12 @@
|
||||
|
||||
struct ConnmanTestMsg : public CConnman {
|
||||
using CConnman::CConnman;
|
||||
|
||||
void SetPeerConnectTimeout(int64_t timeout)
|
||||
{
|
||||
m_peer_connect_timeout = timeout;
|
||||
}
|
||||
|
||||
void AddTestNode(CNode& node)
|
||||
{
|
||||
LOCK(cs_vNodes);
|
||||
|
||||
Reference in New Issue
Block a user