p2p_tx_privacy.py waits 60 seconds for tx2's announcement but the node holds announcements behind a random delay that has no upper bound. An unlucky draw fails the test even though the node behaved as expected and a larger timeout lowers that chance without reaching zero.
This freezes the node's clock before the peers connect and advances it once tx2 is queued thus releasing the queued announcement. One file from #19732.
Verification
Against master at 3e4c803da8, with the reproduction patch from the issue that fixes the NextInvToInbounds draw at 12 minutes:
- master, patched: fails at 60 s in
wait_for_inv_match - this branch, patched: passes in 1 s
- this branch, unpatched: passes, 40 consecutive runs
- this branch with the guard at
net_processing.cpp:2464removed: fails and the spy receives an inv for tx1's wtxid, so the coverage added in #26569 is intact