diff options
author | stickies-v <stickies-v@protonmail.com> | 2024-03-22 14:20:39 +0000 |
---|---|---|
committer | stickies-v <stickies-v@protonmail.com> | 2024-03-22 14:36:52 +0000 |
commit | 032a59748295859845b2a9181ceb1c4ae70bae5c (patch) | |
tree | df68663e227bb984e1d60f3ef8eeb4963eb3227e /src/qt/guiutil.h | |
parent | 71b63195b30b2fa0dff20ebb262ce7566dd5d673 (diff) | |
download | bitcoin-032a59748295859845b2a9181ceb1c4ae70bae5c.tar.xz |
test: make p2p_handshake robust against timeoffset warnings
The test requires that limited nodes are not peered with when
the node's system time exceeds ~ 24h of the node's chaintip
timestamp, as per PeerManagerImpl::GetDesirableServiceFlags.
By patching this test to modify the timestamp of the chaintip as
opposed to mocking the node's system time, we make it resilient
to future commits where the node raises a warning if it detects
its system time is too much out of sync with its outbound peers.
See https://github.com/bitcoin/bitcoin/pull/29623
Diffstat (limited to 'src/qt/guiutil.h')
0 files changed, 0 insertions, 0 deletions