tests: drop expect_disconnect behaviour for tx relay

This commit is contained in:
Anthony Towns committed 2025-08-09 05:10:27 +10:00
1 parent b29ae9efdf
commit 876dbdfb47
4 files changed
+2 -35

No files matched your search

-5
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)