diff --git a/test/functional/p2p_orphan_handling.py b/test/functional/p2p_orphan_handling.py index 1b70b215d1..83d8f18502 100755 --- a/test/functional/p2p_orphan_handling.py +++ b/test/functional/p2p_orphan_handling.py @@ -114,6 +114,7 @@ class PeerTxRelayer(P2PTxInvStore): def assert_never_requested(self, txhash): """Check that the node has never sent us a getdata for this hash (int type)""" + self.sync_with_ping() for getdata in self.getdata_received: for request in getdata.inv: assert request.hash != txhash