only return unspent txos if is_spent flag is not used. fixes #2923

This commit is contained in:
Alex Grintsvayg 2021-03-11 16:42:33 -05:00 committed by Lex Berezhny
parent 69a9cb383d
commit cbc76adcaa

View file

@ -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)