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

Function test_fetchinvoice_3hop

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

Source from the content-addressed store, hash-verified

4602
4603
4604def test_fetchinvoice_3hop(node_factory, bitcoind):
4605 l1, l2, l3, l4 = node_factory.line_graph(4, wait_for_announce=True,
4606 opts={'may_reconnect': True,
4607 'dev-no-reconnect': None})
4608 offer1 = l4.rpc.call('offer', {'amount': '2msat',
4609 'description': 'simple test'})
4610 assert offer1['created'] is True
4611
4612 l1.rpc.call('fetchinvoice', {'offer': offer1['bolt12']})
4613
4614
4615def test_fetchinvoice(node_factory, bitcoind):

Callers

nothing calls this directly

Calls 2

line_graphMethod · 0.80
callMethod · 0.45

Tested by

no test coverage detected