Skip to content

Commit 219da3a

Browse files
committed
tests: add payer_note case for xpay
1 parent 635f0e6 commit 219da3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_xpay.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,10 @@ def test_xpay_simple(node_factory):
172172
b11 = l4.rpc.invoice('10000msat', 'test_xpay_simple', 'test_xpay_simple bolt11')['bolt11']
173173
l1.rpc.xpay(b11)
174174

175-
# BOLT 12.
175+
# BOLT 12 (with payer_note specified).
176176
offer = l3.rpc.offer('any')['bolt12']
177177
b12 = l1.rpc.fetchinvoice(offer, '100000msat')['invoice']
178-
l1.rpc.xpay(b12)
178+
l1.rpc.xpay(invstring=b12, payer_note="Payment for super cheap coffee")
179179

180180
# Failure from l4.
181181
b11 = l4.rpc.invoice('10000msat', 'test_xpay_simple2', 'test_xpay_simple2 bolt11')['bolt11']

0 commit comments

Comments
 (0)