diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-10-07 13:22:51 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-10-07 13:22:02 +0200 |
commit | fadf1186c899f45787a91c28120b0608bdc6c246 (patch) | |
tree | d7510161aa389dcbd0b7ed911cb5249c587f258a /src/test/util | |
parent | c0b6c96eee7c9e24b78935516225259e61cdabf7 (diff) |
p2p: Use mocktime for ping timeout
Diffstat (limited to 'src/test/util')
-rw-r--r-- | src/test/util/net.h | 6 |
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); |