File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -789,6 +789,7 @@ def test_parents_change(self):
789
789
# Disconnect peer1. peer2 should become the new candidate for orphan resolution.
790
790
peer1 .peer_disconnect ()
791
791
self .wait_until (lambda : node .num_test_p2p_connections () == 1 )
792
+ peer2 .sync_with_ping () # Sync with the 'net' thread which completes the disconnection fully
792
793
node .bumpmocktime (TXREQUEST_TIME_SKIP )
793
794
self .wait_until (lambda : len (node .getorphantxs (verbosity = 2 )[0 ]["from" ]) == 1 )
794
795
# Both parents should be requested, now that they are both missing.
Original file line number Diff line number Diff line change @@ -827,7 +827,8 @@ def num_test_p2p_connections(self):
827
827
828
828
def disconnect_p2ps (self ):
829
829
"""Close all p2p connections to the node.
830
- Use only after each p2p has sent a version message to ensure the wait works."""
830
+ The state of the peers (such as txrequests) may not be fully cleared
831
+ yet, even after this method returns."""
831
832
for p in self .p2ps :
832
833
p .peer_disconnect ()
833
834
del self .p2ps [:]
You can’t perform that action at this time.
0 commit comments