diff options
author | MacroFake <falke.marco@gmail.com> | 2022-10-24 16:07:19 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-10-24 16:07:23 +0200 |
commit | fa590cfaae887c927ffb4af92a15516332428d69 (patch) | |
tree | f64f57d3fee77b2ff0b5cdf7218f50f427f5e965 | |
parent | 3db23fd821e0a08e246a60c198676be42de5bcd6 (diff) |
test: Fix intermittent issue in p2p_sendtxrcncl.py
-rwxr-xr-x | test/functional/p2p_sendtxrcncl.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/functional/p2p_sendtxrcncl.py b/test/functional/p2p_sendtxrcncl.py index f4c5dd4586..4c7256bd6b 100755 --- a/test/functional/p2p_sendtxrcncl.py +++ b/test/functional/p2p_sendtxrcncl.py @@ -132,12 +132,10 @@ class SendTxRcnclTest(BitcoinTestFramework): peer.wait_for_disconnect() self.log.info('sending SENDTXRCNCL after sending VERACK triggers a disconnect') - # We use PeerNoVerack even though verack is sent right after, to make sure it was actually - # sent before sendtxrcncl is sent. - peer = self.nodes[0].add_p2p_connection(PeerNoVerack(), send_version=True, wait_for_verack=False) - peer.send_and_ping(msg_verack()) - peer.send_message(create_sendtxrcncl_msg()) - peer.wait_for_disconnect() + peer = self.nodes[0].add_p2p_connection(P2PInterface()) + with self.nodes[0].assert_debug_log(["sendtxrcncl received after verack"]): + peer.send_message(create_sendtxrcncl_msg()) + peer.wait_for_disconnect() self.log.info('SENDTXRCNCL without WTXIDRELAY is ignored (recon state is erased after VERACK)') peer = self.nodes[0].add_p2p_connection(PeerNoVerack(wtxidrelay=False), send_version=True, wait_for_verack=False) |