Skip to content

Commit 3fc4060

Browse files
committed
tests: Add call to preapproveinvoice in pay to inform signer
1 parent 5c5e298 commit 3fc4060

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
@@ -1358,6 +1358,9 @@ def pay(self, dst, amt, label=None):
13581358
'channel': scid
13591359
}
13601360

1361+
# let the signer know this payment is coming
1362+
self.rpc.preapproveinvoice(bolt11=inv['bolt11'])
1363+
13611364
# sendpay is async now
13621365
self.rpc.sendpay([routestep], rhash, payment_secret=psecret, bolt11=inv['bolt11'])
13631366
# wait for sendpay to comply

0 commit comments

Comments
 (0)