mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-29 02:11:24 +02:00
test fix: make peer who sends MSG_TX announcement non-wtxidrelay
Otherwise, it is not meaningful to test whether the announcement is ignored, because *all* announcements of this type are ignored.
This commit is contained in:
@ -66,8 +66,8 @@ def cleanup(func):
|
||||
|
||||
class PeerTxRelayer(P2PTxInvStore):
|
||||
"""A P2PTxInvStore that also remembers all of the getdata and tx messages it receives."""
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
def __init__(self, wtxidrelay=True):
|
||||
super().__init__(wtxidrelay=wtxidrelay)
|
||||
self._tx_received = []
|
||||
self._getdata_received = []
|
||||
|
||||
@ -402,7 +402,7 @@ class OrphanHandlingTest(BitcoinTestFramework):
|
||||
node = self.nodes[0]
|
||||
peer1 = node.add_p2p_connection(PeerTxRelayer())
|
||||
peer2 = node.add_p2p_connection(PeerTxRelayer())
|
||||
peer3 = node.add_p2p_connection(PeerTxRelayer())
|
||||
peer3 = node.add_p2p_connection(PeerTxRelayer(wtxidrelay=False))
|
||||
|
||||
self.log.info("Test that an orphan with rejected parents, along with any descendants, cannot be retried with an alternate witness")
|
||||
parent_low_fee_nonsegwit = self.wallet_nonsegwit.create_self_transfer(fee_rate=0)
|
||||
|
Reference in New Issue
Block a user