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

Function route_to_l7

tests/test_closing.py:3249–3254  ·  view source on GitHub ↗

Route from l1, l2 or l3 to l7

(src)

Source from the content-addressed store, hash-verified

3247 l5.pay(n, 10**9 // 2)
3248
3249 def route_to_l7(src):
3250 """Route from l1, l2 or l3 to l7"""
3251 # We give extra CLTV on first hop, so we never break channel.
3252 return [{'id': l4.info['id'], 'channel': src.get_channel_scid(l4), 'amount_msat': "100002002msat", 'delay': 115},
3253 {'id': l5.info['id'], 'channel': l4.get_channel_scid(l5), 'amount_msat': "100001001msat", 'delay': 15},
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"""

Callers 1

setup_multihtlc_testFunction · 0.85

Calls 1

get_channel_scidMethod · 0.80

Tested by

no test coverage detected