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

Function route_to_l1

tests/test_closing.py:3256–3261  ·  view source on GitHub ↗

Route from l6 or l7 to l1

(src)

Source from the content-addressed store, hash-verified

3254 {'id': l7.info['id'], 'channel': l5.get_channel_scid(l7), 'amount_msat': "100000000msat", 'delay': 9}]
3255
3256 def route_to_l1(src):
3257 """Route from l6 or l7 to l1"""
3258 # We give extra CLTV on first hop, so we never break channel.
3259 return [{'id': l5.info['id'], 'channel': src.get_channel_scid(l5), 'amount_msat': "100002002msat", 'delay': 115},
3260 {'id': l4.info['id'], 'channel': l5.get_channel_scid(l4), 'amount_msat': "100001001msat", 'delay': 15},
3261 {'id': l1.info['id'], 'channel': l4.get_channel_scid(l1), 'amount_msat': "100000000msat", 'delay': 9}]
3262
3263 # Freeze the HTLCs in place.
3264 l1.rpc.dev_ignore_htlcs(id=l4.info['id'], ignore=True)

Callers 1

setup_multihtlc_testFunction · 0.85

Calls 1

get_channel_scidMethod · 0.80

Tested by

no test coverage detected