diff --git a/test/functional/p2p_sendtxrcncl.py b/test/functional/p2p_sendtxrcncl.py index 2c7216b5ca3671..85087d2fb46a32 100755 --- a/test/functional/p2p_sendtxrcncl.py +++ b/test/functional/p2p_sendtxrcncl.py @@ -107,7 +107,6 @@ def run_test(self): peer.send_message(no_txrelay_version_msg) peer.wait_for_verack() assert not peer.sendtxrcncl_msg_received - self.nodes[0].disconnect_p2ps() self.log.info('SENDTXRCNCL for fRelay=false should not be sent (with NODE_BLOOM offered)') self.restart_node(0, ["-peerbloomfilters", "-txreconciliation"]) @@ -146,19 +145,16 @@ def run_test(self): peer = self.nodes[0].add_outbound_p2p_connection( SendTxrcnclReceiver(), wait_for_verack=True, p2p_idx=0, connection_type="addr-fetch") assert not peer.sendtxrcncl_msg_received - self.nodes[0].disconnect_p2ps() self.log.info('SENDTXRCNCL not sent if -txreconciliation flag is not set') self.restart_node(0, []) peer = self.nodes[0].add_p2p_connection(SendTxrcnclReceiver(), send_version=True, wait_for_verack=True) assert not peer.sendtxrcncl_msg_received - self.nodes[0].disconnect_p2ps() self.log.info('SENDTXRCNCL not sent if blocksonly is set') self.restart_node(0, ["-txreconciliation", "-blocksonly"]) peer = self.nodes[0].add_p2p_connection(SendTxrcnclReceiver(), send_version=True, wait_for_verack=True) assert not peer.sendtxrcncl_msg_received - self.nodes[0].disconnect_p2ps() # Check everything concerning *receiving* SENDTXRCNCL # First, receiving from *inbound*. @@ -177,7 +173,6 @@ def run_test(self): peer = self.nodes[0].add_p2p_connection(PeerNoVerack(), send_version=True, wait_for_verack=False) with self.nodes[0].assert_debug_log(['ignored, as our node does not have txreconciliation enabled']): peer.send_message(create_sendtxrcncl_msg()) - self.nodes[0].disconnect_p2ps() self.restart_node(0, ["-txreconciliation"])