@@ -169,8 +169,6 @@ def test_expiry_fallback(self):
169
169
assert_equal (peer_fallback .tx_getdata_count , 0 )
170
170
self .nodes [0 ].setmocktime (int (time .time ()) + GETDATA_TX_INTERVAL + 1 ) # Wait for request to peer_expiry to expire
171
171
peer_fallback .wait_until (lambda : peer_fallback .tx_getdata_count >= 1 , timeout = 1 )
172
- with p2p_lock :
173
- assert_equal (peer_fallback .tx_getdata_count , 1 )
174
172
self .restart_node (0 ) # reset mocktime
175
173
176
174
def test_disconnect_fallback (self ):
@@ -188,8 +186,6 @@ def test_disconnect_fallback(self):
188
186
peer_disconnect .peer_disconnect ()
189
187
peer_disconnect .wait_for_disconnect ()
190
188
peer_fallback .wait_until (lambda : peer_fallback .tx_getdata_count >= 1 , timeout = 1 )
191
- with p2p_lock :
192
- assert_equal (peer_fallback .tx_getdata_count , 1 )
193
189
194
190
def test_notfound_fallback (self ):
195
191
self .log .info ('Check that notfounds will select another peer for download immediately' )
@@ -205,8 +201,6 @@ def test_notfound_fallback(self):
205
201
assert_equal (peer_fallback .tx_getdata_count , 0 )
206
202
peer_notfound .send_and_ping (msg_notfound (vec = [CInv (MSG_WTX , WTXID )])) # Send notfound, so that fallback peer is selected
207
203
peer_fallback .wait_until (lambda : peer_fallback .tx_getdata_count >= 1 , timeout = 1 )
208
- with p2p_lock :
209
- assert_equal (peer_fallback .tx_getdata_count , 1 )
210
204
211
205
def test_preferred_inv (self , preferred = False ):
212
206
if preferred :
@@ -243,8 +237,6 @@ def test_txid_inv_delay(self, glob_wtxid=False):
243
237
assert_equal (peer .tx_getdata_count , 0 if glob_wtxid else 1 )
244
238
self .nodes [0 ].setmocktime (mock_time + TXID_RELAY_DELAY )
245
239
peer .wait_until (lambda : peer .tx_getdata_count >= 1 , timeout = 1 )
246
- with p2p_lock :
247
- assert_equal (peer .tx_getdata_count , 1 )
248
240
249
241
def test_large_inv_batch (self ):
250
242
self .log .info ('Test how large inv batches are handled with relay permission' )
@@ -259,8 +251,6 @@ def test_large_inv_batch(self):
259
251
peer .send_message (msg_inv ([CInv (t = MSG_WTX , h = wtxid ) for wtxid in range (MAX_PEER_TX_ANNOUNCEMENTS + 1 )]))
260
252
peer .wait_until (lambda : peer .tx_getdata_count == MAX_PEER_TX_ANNOUNCEMENTS )
261
253
peer .sync_with_ping ()
262
- with p2p_lock :
263
- assert_equal (peer .tx_getdata_count , MAX_PEER_TX_ANNOUNCEMENTS )
264
254
265
255
def test_spurious_notfound (self ):
266
256
self .log .info ('Check that spurious notfound is ignored' )
0 commit comments