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

Function direction

tests/autogenerate-rpc-examples.py:1039–1042  ·  view source on GitHub ↗
(src, dst)

Source from the content-addressed store, hash-verified

1037 logger.info('Askrene Start...')
1038
1039 def direction(src, dst):
1040 if src < dst:
1041 return 0
1042 return 1
1043
1044 direction12 = direction(l1.info['id'], l2.info['id'])
1045 direction23 = direction(l2.info['id'], l3.info['id'])

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected