only return unspent txos if is_spent flag is not used. fixes #2923
This commit is contained in:
parent
69a9cb383d
commit
cbc76adcaa
1 changed files with 1 additions and 1 deletions
|
@ -2862,7 +2862,7 @@ class Daemon(metaclass=JSONRPCServerType):
|
||||||
Returns: {Paginated[Output]}
|
Returns: {Paginated[Output]}
|
||||||
"""
|
"""
|
||||||
kwargs['type'] = 'channel'
|
kwargs['type'] = 'channel'
|
||||||
if 'is_spent' not in kwargs:
|
if 'is_spent' not in kwargs or not kwargs['is_spent']:
|
||||||
kwargs['is_not_spent'] = True
|
kwargs['is_not_spent'] = True
|
||||||
return self.jsonrpc_txo_list(*args, **kwargs)
|
return self.jsonrpc_txo_list(*args, **kwargs)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue