mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-09 09:04:25 +01:00
pyln: rpc support for listchannels by destination
This commit is contained in:
committed by
neil saitug
parent
fc238bc61c
commit
89c45b379a
@@ -844,13 +844,15 @@ class LightningRpc(UnixDomainSocketRpc):
|
||||
}
|
||||
return self.call("invoice", payload)
|
||||
|
||||
def listchannels(self, short_channel_id=None, source=None):
|
||||
def listchannels(self, short_channel_id=None, source=None, destination=None):
|
||||
"""
|
||||
Show all known channels, accept optional {short_channel_id} or {source}.
|
||||
Show all known channels or filter by optional
|
||||
{short_channel_id}, {source} or {destination}.
|
||||
"""
|
||||
payload = {
|
||||
"short_channel_id": short_channel_id,
|
||||
"source": source
|
||||
"source": source,
|
||||
"destination": destination
|
||||
}
|
||||
return self.call("listchannels", payload)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user