Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions chia/data_layer/data_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
unspecified,
)
from chia.util.batches import to_batches
from chia.util.cpu import available_logical_cores
from chia.util.db_wrapper import SQLITE_MAX_VARIABLE_NUMBER, DBWrapper2
from chia.util.log_exceptions import log_exceptions
from chia.util.lru_cache import LRUCache
Expand Down Expand Up @@ -299,8 +300,7 @@ async def build_cache_and_collect_missing_hashes(

current_generation = generations[-1] + 1

# TODO: at least shouldn't be hard coded
batch_size = 10
batch_size = available_logical_cores()
generations = range(
current_generation,
min(current_generation + batch_size, root.generation),
Expand Down
Loading