Skip to content

Commit

Permalink
CHIA-437: Add coin id index to coin state batching (#18052)
Browse files Browse the repository at this point in the history
Add coin id index to coin state batching
  • Loading branch information
Rigidity authored Jun 5, 2024
1 parent a37ad22 commit ee024b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chia/full_node/coin_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ async def batch_coin_states_by_puzzle_hashes(
if include_hinted:
cursor = await conn.execute(
f"SELECT confirmed_index, spent_index, coinbase, puzzle_hash, "
f"coin_parent, amount, timestamp FROM coin_record "
f"coin_parent, amount, timestamp FROM coin_record INDEXED BY sqlite_autoindex_coin_record_1 "
f"WHERE coin_name IN (SELECT coin_id FROM hints "
f'WHERE hint IN ({"?," * (puzzle_hash_count - 1)}?)) '
f"AND (confirmed_index>=? OR spent_index>=?) "
Expand Down

0 comments on commit ee024b8

Please sign in to comment.