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

Function direction

tests/test_askrene.py:19–23  ·  view source on GitHub ↗

BOLT 7 direction: 0 means from lesser encoded id

(src, dst)

Source from the content-addressed store, hash-verified

17
18
19def direction(src, dst):
20 """BOLT 7 direction: 0 means from lesser encoded id"""
21 if src < dst:
22 return 0
23 return 1
24
25
26def scid_dir(nodemap, node1_idx, node2_idx, chan_idx):

Callers 15

scid_dirFunction · 0.70
test_reserveFunction · 0.70
test_layersFunction · 0.70
test_layer_persistenceFunction · 0.70
test_getroutesFunction · 0.70
test_getroutes_maxdelayFunction · 0.70
test_sourcefree_on_modsFunction · 0.70
test_limits_fake_gossmapFunction · 0.70
test_max_htlcFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected