diff --git a/contrib/pyln-testing/pyln/testing/utils.py b/contrib/pyln-testing/pyln/testing/utils.py index 3d0723e866f3..a726e58439e0 100644 --- a/contrib/pyln-testing/pyln/testing/utils.py +++ b/contrib/pyln-testing/pyln/testing/utils.py @@ -1021,6 +1021,9 @@ def pay(self, dst, amt, label=None): result = self.rpc.waitsendpay(rhash) assert(result.get('status') == 'complete') + # Make sure they're all settled, in case we quickly mine blocks! + dst.wait_for_htlcs() + # This helper sends all money to a peer until even 1 msat can't get through. def drain(self, peer): total = 0