Skip to content

Commit

Permalink
Add comment explaining 15000 limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Jan 23, 2024
1 parent ddb6d43 commit 25a8ce3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chia/full_node/coin_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,8 @@ async def batch_coin_states_by_puzzle_hashes(
Note that the maximum number of puzzle hashes is currently set to 15000.
"""

# This number is chosen such that it's below half of the Python 3.8+ SQLite variable limit.
# It can be changed later without breaking the protocol, but this is a practical limit for now.
assert len(puzzle_hashes) <= 15000

coin_states: List[CoinState] = []
Expand Down

0 comments on commit 25a8ce3

Please sign in to comment.