aboutsummaryrefslogtreecommitdiff
path: root/src/test/util
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-10-07 13:22:51 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-10-07 13:22:02 +0200
commitfadf1186c899f45787a91c28120b0608bdc6c246 (patch)
treed7510161aa389dcbd0b7ed911cb5249c587f258a /src/test/util
parentc0b6c96eee7c9e24b78935516225259e61cdabf7 (diff)
p2p: Use mocktime for ping timeout
Diffstat (limited to 'src/test/util')
-rw-r--r--src/test/util/net.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/util/net.h b/src/test/util/net.h
index 939ec322ed..d89fc34b75 100644
--- a/src/test/util/net.h
+++ b/src/test/util/net.h
@@ -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);