@@ -2133,17 +2133,17 @@ def received_wtxidrelay():
2133
2133
2134
2134
# Send tx2 through; it's an orphan so won't be accepted
2135
2135
with mininode_lock :
2136
- self .tx_node .last_message .pop ("getdata" , None )
2137
- test_transaction_acceptance (self .nodes [0 ], self .tx_node , tx2 , with_witness = True , accepted = False )
2136
+ self .wtx_node .last_message .pop ("getdata" , None )
2137
+ test_transaction_acceptance (self .nodes [0 ], self .wtx_node , tx2 , with_witness = True , accepted = False )
2138
2138
2139
- # Expect a request for parent (tx) due to use of non- WTX peer
2140
- self .tx_node .wait_for_getdata ([tx .sha256 ], 60 )
2139
+ # Expect a request for parent (tx) by txid despite use of WTX peer
2140
+ self .wtx_node .wait_for_getdata ([tx .sha256 ], 60 )
2141
2141
with mininode_lock :
2142
- lgd = self .tx_node .lastgetdata [:]
2142
+ lgd = self .wtx_node .lastgetdata [:]
2143
2143
assert_equal (lgd , [CInv (MSG_TX | MSG_WITNESS_FLAG , tx .sha256 )])
2144
2144
2145
2145
# Send tx through
2146
- test_transaction_acceptance (self .nodes [0 ], self .tx_node , tx , with_witness = False , accepted = True )
2146
+ test_transaction_acceptance (self .nodes [0 ], self .wtx_node , tx , with_witness = False , accepted = True )
2147
2147
2148
2148
# Check tx2 is there now
2149
2149
assert_equal (tx2 .hash in self .nodes [0 ].getrawmempool (), True )
0 commit comments