Skip to content

Commit ee2f711

Browse files
committed
renepay: add test_unannounced
Changelog-None. Signed-off-by: Lagrang3 <[email protected]>
1 parent 8147933 commit ee2f711

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/test_renepay.py

+15
Original file line numberDiff line numberDiff line change
@@ -856,3 +856,18 @@ def test_offer_selfpay(node_factory):
856856
offer = l1.rpc.offer(amount="2msat", description="test_offer_path_self")["bolt12"]
857857
inv = l1.rpc.fetchinvoice(offer)["invoice"]
858858
l1.rpc.call("renepay", {"invstring": inv})
859+
860+
861+
def test_unannounced(node_factory):
862+
l1, l2 = node_factory.line_graph(2, announce_channels=False)
863+
# BOLT11 direct peer
864+
b11 = l2.rpc.invoice(
865+
"100sat", "test_renepay_unannounced", "test_renepay_unannounced"
866+
)["bolt11"]
867+
ret = l1.rpc.call("renepay", {"invstring": b11})
868+
assert ret["status"] == "complete"
869+
# BOLT12 direct peer
870+
offer = l2.rpc.offer("any")["bolt12"]
871+
b12 = l1.rpc.fetchinvoice(offer, "21sat")["invoice"]
872+
ret = l1.rpc.call("renepay", {"invstring": b12})
873+
assert ret["status"] == "complete"

0 commit comments

Comments
 (0)