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

Function first_channel_id

tests/utils.py:411–412  ·  view source on GitHub ↗
(n1, n2)

Source from the content-addressed store, hash-verified

409
410
411def first_channel_id(n1, n2):
412 return only_one(only_one(n1.rpc.listpeers(n2.info['id'])['peers'])['channels'])['channel_id']
413
414
415def first_scid(n1, n2):

Calls 2

only_oneFunction · 0.90
listpeersMethod · 0.45