Route from l6 or l7 to l1
(src)
| 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) |
no test coverage detected