Skip to content

Commit

Permalink
Instruct the use of coin_puzzle_hash index to get_unspent_lineage_inf…
Browse files Browse the repository at this point in the history
…o_for_puzzle_hash (#17512)

Instruct the use of coin_puzzle_hash index to get_unspent_lineage_info_for_puzzle_hash.
  • Loading branch information
AmineKhaldi authored Feb 7, 2024
1 parent fce56b9 commit 654d327
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 @@ -598,7 +598,7 @@ async def get_unspent_lineage_info_for_puzzle_hash(self, puzzle_hash: bytes32) -
"unspent.coin_parent, "
"parent.amount, "
"parent.coin_parent "
"FROM coin_record AS unspent "
"FROM coin_record AS unspent INDEXED BY coin_puzzle_hash "
"LEFT JOIN coin_record AS parent ON unspent.coin_parent = parent.coin_name "
"WHERE unspent.spent_index = 0 "
"AND parent.spent_index > 0 "
Expand Down

0 comments on commit 654d327

Please sign in to comment.