mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 17:14:22 +01:00
tests/utils.py: use listpeerchannels.
This commit is contained in:
committed by
Rusty Russell
parent
f08d3516f7
commit
1fa32333b9
@@ -410,11 +410,11 @@ def check_utxos_channel(n, chans, expected, exp_tag_list=None, filter_channel=No
|
|||||||
|
|
||||||
|
|
||||||
def first_channel_id(n1, n2):
|
def first_channel_id(n1, n2):
|
||||||
return only_one(only_one(n1.rpc.listpeers(n2.info['id'])['peers'])['channels'])['channel_id']
|
return only_one(n1.rpc.listpeerchannels(n2.info['id'])['channels'])['channel_id']
|
||||||
|
|
||||||
|
|
||||||
def first_scid(n1, n2):
|
def first_scid(n1, n2):
|
||||||
return only_one(only_one(n1.rpc.listpeers(n2.info['id'])['peers'])['channels'])['short_channel_id']
|
return only_one(n1.rpc.listpeerchannels(n2.info['id'])['channels'])['short_channel_id']
|
||||||
|
|
||||||
|
|
||||||
def basic_fee(feerate):
|
def basic_fee(feerate):
|
||||||
|
|||||||
Reference in New Issue
Block a user