Skip to content

Commit

Permalink
only return unspent txos if is_spent flag is not used. fixes #2923
Browse files Browse the repository at this point in the history
  • Loading branch information
lyoshenka authored and eukreign committed Mar 13, 2021
1 parent 69a9cb3 commit cbc76ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lbry/extras/daemon/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -2862,7 +2862,7 @@ def jsonrpc_channel_list(self, *args, **kwargs):
Returns: {Paginated[Output]}
"""
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
return self.jsonrpc_txo_list(*args, **kwargs)

Expand Down

0 comments on commit cbc76ad

Please sign in to comment.