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

Function test_blinded_reply_path_scid

tests/test_pay.py:5942–5951  ·  view source on GitHub ↗

Check that we handle a blinded path which begins with a scid instead of a nodeid

(node_factory)

Source from the content-addressed store, hash-verified

5940
5941
5942def test_blinded_reply_path_scid(node_factory):
5943 """Check that we handle a blinded path which begins with a scid instead of a nodeid"""
5944 l1, l2 = node_factory.line_graph(2, wait_for_announce=True)
5945 offer = l2.rpc.offer(amount='2msat', description='test_blinded_reply_path_scid')
5946
5947 chan = only_one(l1.rpc.listpeerchannels()['channels'])
5948 scidd = "{}/{}".format(chan['short_channel_id'], chan['direction'])
5949 inv = l1.rpc.call('fetchinvoice', {'offer': offer['bolt12'], 'dev_path_use_scidd': scidd})['invoice']
5950
5951 l1.rpc.pay(inv)
5952
5953
5954def test_pay_while_opening_channel(node_factory, bitcoind, executor):

Callers

nothing calls this directly

Calls 6

only_oneFunction · 0.90
line_graphMethod · 0.80
listpeerchannelsMethod · 0.80
offerMethod · 0.45
callMethod · 0.45
payMethod · 0.45

Tested by

no test coverage detected