Skip to content

Commit a61ed5e

Browse files
committed
tests: Add call to preapproveinvoice in pay to inform signer
1 parent 963ac52 commit a61ed5e

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
@@ -1355,6 +1355,9 @@ def pay(self, dst, amt, label=None):
13551355
'channel': scid
13561356
}
13571357

1358+
# let the signer know this payment is coming
1359+
self.rpc.preapproveinvoice(bolt11=inv['bolt11'])
1360+
13581361
# sendpay is async now
13591362
self.rpc.sendpay([routestep], rhash, payment_secret=psecret, bolt11=inv['bolt11'])
13601363
# wait for sendpay to comply

0 commit comments

Comments
 (0)