mirror of https://github.com/bitcoin/bitcoin
Merge bitcoin/bitcoin#31142: test: fix intermittent failure in p2p_seednode.py, don't connect to random IPs
pull/31177/head6c9fe7b73e
test: Prevent connection attempts to random IPs in p2p_seednodes.py (Martin Zumsande)bb97b1ffa9
test: fix intermittent timeout in p2p_seednodes.py (Martin Zumsande) Pull request description: Fixes #31103 On some CI runs, the seed node timer in `ThreadOpenConnection` was only started *after* the mocktime was set. Fix this by waiting for the first connection attempt, which happens after the timer was started. Also I noticed that the "unreachable" connections are not in fact unreachable, so that the functional test could attempt connections to random IPs on the internet. This was already noted in https://github.com/bitcoin/bitcoin/pull/29605#discussion_r1701616675 but the suggested fix never made it in, so I added it to this PR. ACKs for top commit: sr-gi: tACK [6c9fe7b
](6c9fe7b73e
) laanwj: Code review ACK6c9fe7b73e
tdb3: cr and light test ACK6c9fe7b73e
Tree-SHA512: 021b6d5325eab85d79708b4b137f61723a36f2b8a1faf681463bad2ea5283ea528b5ff1701467a86b035d3a6972750a61ace5020e58b7aa61ecaad97664488c8
commit
e96ffa98b0
Loading…
Reference in new issue