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

Function test_offer_deprecated_api

tests/test_pay.py:4592–4601  ·  view source on GitHub ↗
(node_factory, bitcoind)

Source from the content-addressed store, hash-verified

4590
4591
4592def test_offer_deprecated_api(node_factory, bitcoind):
4593 l1, l2 = node_factory.line_graph(2, opts={'allow-deprecated-apis': True})
4594
4595 offer = l2.rpc.call('offer', {'amount': '2msat',
4596 'description': 'test_offer_deprecated_api'})
4597 inv = l1.rpc.call('fetchinvoice', {'offer': offer['bolt12']})
4598
4599 # Deprecated fields make schema checker upset.
4600 l1.rpc.jsonschemas = {}
4601 l1.rpc.pay(inv['invoice'])
4602
4603
4604def test_fetchinvoice_3hop(node_factory, bitcoind):

Callers

nothing calls this directly

Calls 3

line_graphMethod · 0.80
callMethod · 0.45
payMethod · 0.45

Tested by

no test coverage detected