Skip to content

Commit 36ac83c

Browse files
committed
tests: add call to preapproveinvoice in pay to inform signer
1 parent c29e5ff commit 36ac83c

File tree

1 file changed

+3
-0
lines changed
  • contrib/pyln-testing/pyln/testing

1 file changed

+3
-0
lines changed

contrib/pyln-testing/pyln/testing/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,6 +1392,9 @@ def pay(self, dst, amt, label=None, route=False):
13921392
'channel': scid
13931393
}
13941394

1395+
# let the signer know this payment is coming
1396+
self.rpc.preapproveinvoice(bolt11=inv['bolt11'])
1397+
13951398
# sendpay is async now
13961399
self.rpc.sendpay([routestep], rhash, payment_secret=psecret, bolt11=inv['bolt11'])
13971400
# wait for sendpay to comply

0 commit comments

Comments
 (0)