mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-07 16:14:26 +01:00
listchannels: allow source arg to list channels by their source node.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
de682f5806
commit
dc2ee9639b
@@ -167,12 +167,13 @@ class LightningRpc(UnixDomainSocketRpc):
|
||||
}
|
||||
return self.call("getroute", payload)
|
||||
|
||||
def listchannels(self, short_channel_id=None):
|
||||
def listchannels(self, short_channel_id=None, source=None):
|
||||
"""
|
||||
Show all known channels, accept optional {short_channel_id}
|
||||
Show all known channels, accept optional {short_channel_id} or {source}
|
||||
"""
|
||||
payload = {
|
||||
"short_channel_id": short_channel_id
|
||||
"short_channel_id": short_channel_id,
|
||||
"source": source
|
||||
}
|
||||
return self.call("listchannels", payload)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user