From 5c45939acf6ec48864dd13352b6ae3a450edc3f4 Mon Sep 17 00:00:00 2001 From: niftynei Date: Tue, 19 Jul 2022 17:04:40 +0930 Subject: [PATCH] test-utils: add the bolt11 invoice nice to have for making tests that assert on description/bolt data --- contrib/pyln-testing/pyln/testing/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/pyln-testing/pyln/testing/utils.py b/contrib/pyln-testing/pyln/testing/utils.py index 5ca70e01a..dfff1eb74 100644 --- a/contrib/pyln-testing/pyln/testing/utils.py +++ b/contrib/pyln-testing/pyln/testing/utils.py @@ -1110,7 +1110,7 @@ class LightningNode(object): } # sendpay is async now - self.rpc.sendpay([routestep], rhash, payment_secret=psecret) + self.rpc.sendpay([routestep], rhash, payment_secret=psecret, bolt11=inv['bolt11']) # wait for sendpay to comply result = self.rpc.waitsendpay(rhash) assert(result.get('status') == 'complete')