tests: drop expect_disconnect behaviour for tx relay

This commit is contained in:
Anthony Towns
2025-08-08 23:15:17 +10:00
parent b29ae9efdf
commit 876dbdfb47
4 changed files with 2 additions and 35 deletions

View File

@@ -73,14 +73,9 @@ class InvalidTxRequestTest(BitcoinTestFramework):
tx = template.get_tx()
node.p2ps[0].send_txs_and_test(
[tx], node, success=False,
expect_disconnect=False,
reject_reason=template.reject_reason,
)
if template.expect_disconnect:
self.log.info("Reconnecting to peer")
self.reconnect_p2p()
# Make two p2p connections to provide the node with orphans
# * p2ps[0] will send valid orphan txs (one with low fee)
# * p2ps[1] will send an invalid orphan tx (and is later disconnected for that)