Skip to content

Commit ce2cb32

Browse files
committed
tests: add call to preapproveinvoice in pay to inform signer
1 parent 0c41f98 commit ce2cb32

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
@@ -1391,6 +1391,9 @@ def pay(self, dst, amt, label=None, route=False):
13911391
'channel': scid
13921392
}
13931393

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

0 commit comments

Comments
 (0)