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:449–450 ·
view source on GitHub ↗
(n1, n2)
Source
from the content-addressed store, hash-verified
447
448
449
def
first_channel_id(n1, n2):
450
return
only_one(n1.rpc.listpeerchannels(n2.info[
'id'
])[
'channels'
])[
'channel_id'
]
451
452
453
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_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
test_channel_lease_post_expiry
Function · 0.90
test_penalty_htlc_tx_fulfill
Function · 0.90
Calls
2
only_one
Function · 0.90
listpeerchannels
Method · 0.80
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_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
test_channel_lease_post_expiry
Function · 0.72
test_penalty_htlc_tx_fulfill
Function · 0.72