MCPcopy Create free account
hub / github.com/ElementsProject/lightning / test_sendamount_bip353

Function test_sendamount_bip353

tests/test_xpay.py:1471–1488  ·  view source on GitHub ↗
(node_factory)

Source from the content-addressed store, hash-verified

1469
1470
1471def test_sendamount_bip353(node_factory):
1472 fakebip353_plugin = Path(__file__).parent / "plugins" / "fakebip353.py"
1473
1474 l1 = node_factory.get_node()
1475 offer = l1.rpc.offer("any")["bolt12"]
1476
1477 l2 = node_factory.get_node(
1478 options={
1479 "disable-plugin": "cln-bip353",
1480 "plugin": fakebip353_plugin,
1481 "bip353offer": offer,
1482 }
1483 )
1484
1485 node_factory.join_nodes([l2, l1])
1486 ret = l2.rpc.sendamount("fake@fake.com", "100sat")
1487 assert ret["successful_parts"] == 1
1488 assert ret["amount_sent_msat"] == 100000
1489
1490
1491# l2's private key (node #2 always gets this hsm_secret, see test_pay_bolt11_metadata)

Callers

nothing calls this directly

Calls 4

join_nodesMethod · 0.80
sendamountMethod · 0.80
get_nodeMethod · 0.45
offerMethod · 0.45

Tested by

no test coverage detected