mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
listpeers: include private field in channels output
Reveal channel's 'privacy' in `listpeers` output Suggested-By: @shesek
This commit is contained in:
committed by
Rusty Russell
parent
36e060aa60
commit
efa38875b2
@@ -805,6 +805,11 @@ def test_private_channel(node_factory):
|
||||
assert not l1.daemon.is_in_log('Received node_announcement for node {}'.format(l2.info['id']))
|
||||
assert not l2.daemon.is_in_log('Received node_announcement for node {}'.format(l1.info['id']))
|
||||
|
||||
# test for 'private' flag in rpc output
|
||||
assert only_one(only_one(l1.rpc.listpeers(l2.info['id'])['peers'])['channels'])['private']
|
||||
# check non-private channel
|
||||
assert not only_one(only_one(l4.rpc.listpeers(l3.info['id'])['peers'])['channels'])['private']
|
||||
|
||||
|
||||
@unittest.skipIf(not DEVELOPER, "needs DEVELOPER=1 for --dev-broadcast-interval")
|
||||
def test_channel_reenable(node_factory):
|
||||
|
||||
Reference in New Issue
Block a user