diff --git a/lbry/wallet/database.py b/lbry/wallet/database.py index 2ddf9a666b..48acebc5d6 100644 --- a/lbry/wallet/database.py +++ b/lbry/wallet/database.py @@ -1211,6 +1211,7 @@ async def get_addresses(self, cols=None, read_only=False, **constraints): return addresses async def get_address_count(self, cols=None, read_only=False, **constraints): + self._clean_txo_constraints_for_aggregation(constraints) count = await self.select_addresses('COUNT(*) as total', read_only=read_only, **constraints) return count[0]['total'] or 0