HomePhabricator

p2p: Use mocktime for ping timeout

Description

p2p: Use mocktime for ping timeout

Summary:

It is slightly confusing to use mocktime for some times, but not others.

Start fixing that by making the ping timeout use mocktime.

This is a backport of core#23218
Depends on D10956

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D10957

Details

Provenance
MarcoFalke <falke.marco@gmail.com>Authored on Oct 7 2021, 11:22
PiRKCommitted on Feb 2 2022, 16:07
PiRKPushed on Feb 2 2022, 16:07
Reviewer
Restricted Project
Differential Revision
D10957: p2p: Use mocktime for ping timeout
Parents
rABC4ac9737a7103: test: Set peertimeout in write_config
Branches
Unknown
Tags
Unknown