diff --git a/test/functional/p2p_orphan_handling.py b/test/functional/p2p_orphan_handling.py index 0805764a8ee..755cb8f3e98 100755 --- a/test/functional/p2p_orphan_handling.py +++ b/test/functional/p2p_orphan_handling.py @@ -113,6 +113,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