diff --git a/chia/full_node/coin_store.py b/chia/full_node/coin_store.py index 8c51943d0987..999ed5cc75a3 100644 --- a/chia/full_node/coin_store.py +++ b/chia/full_node/coin_store.py @@ -268,7 +268,8 @@ class CoinStore: coins = set() puzzle_hashes_db = tuple([ph.hex() for ph in puzzle_hashes]) cursor = await self.coin_record_db.execute( - f'SELECT * from coin_record WHERE puzzle_hash in ({"?," * (len(puzzle_hashes) - 1)}?) ' + f"SELECT * from coin_record INDEXED BY coin_puzzle_hash " + f'WHERE puzzle_hash in ({"?," * (len(puzzle_hashes) - 1)}?) ' f"AND confirmed_index>=? AND confirmed_index