(node_factory)
| 1469 | |
| 1470 | |
| 1471 | def 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) |
nothing calls this directly
no test coverage detected