Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
411
def
first_channel_id(n1, n2):
412
return
only_one(only_one(n1.rpc.listpeers(n2.info[
'id'
])[
'peers'
])[
'channels'
])[
'channel_id'
]
413
414
415
def
first_scid(n1, n2):
Callers
15
test_funding_push
Function · 0.90
test_bookkeeping_missed_chans_leases
Function · 0.90
test_bookkeeping_missed_chans_pushed
Function · 0.90
test_bookkeeping_missed_chans_pay_after
Function · 0.90
test_coin_movement_notices
Function · 0.90
test_v2_open_sigs_restart
Function · 0.90
test_v2_open_sigs_restart_while_dead
Function · 0.90
test_v2_replay_bookkeeping
Function · 0.90
test_buy_liquidity_ad_check_bookkeeping
Function · 0.90
test_closing_simple
Function · 0.90
test_penalty_inhtlc
Function · 0.90
test_penalty_outhtlc
Function · 0.90
Calls
2
only_one
Function · 0.90
listpeers
Method · 0.45
Tested by
15
test_funding_push
Function · 0.72
test_bookkeeping_missed_chans_leases
Function · 0.72
test_bookkeeping_missed_chans_pushed
Function · 0.72
test_bookkeeping_missed_chans_pay_after
Function · 0.72
test_coin_movement_notices
Function · 0.72
test_v2_open_sigs_restart
Function · 0.72
test_v2_open_sigs_restart_while_dead
Function · 0.72
test_v2_replay_bookkeeping
Function · 0.72
test_buy_liquidity_ad_check_bookkeeping
Function · 0.72
test_closing_simple
Function · 0.72
test_penalty_inhtlc
Function · 0.72
test_penalty_outhtlc
Function · 0.72