mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-06 06:34:22 +01:00
test-utils: add the bolt11 invoice
nice to have for making tests that assert on description/bolt data
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user