File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -856,3 +856,18 @@ def test_offer_selfpay(node_factory):
856
856
offer = l1 .rpc .offer (amount = "2msat" , description = "test_offer_path_self" )["bolt12" ]
857
857
inv = l1 .rpc .fetchinvoice (offer )["invoice" ]
858
858
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"
You can’t perform that action at this time.
0 commit comments