connector

This commit is contained in:
4tochka 2019-05-10 18:56:54 +04:00
parent b6eec89f17
commit ca6010ccba

View File

@ -68,9 +68,9 @@ class BlockLoader:
new_requests = 0
if self.parent.block_preload._store_size < self.parent.block_preload_cache_limit:
try:
if self.last_batch_size < 50000:
if self.last_batch_size < 50000000:
self.rpc_batch_limit += 10
elif self.last_batch_size > 70000 and self.rpc_batch_limit > 10:
elif self.last_batch_size > 70000000 and self.rpc_batch_limit > 10:
self.rpc_batch_limit -= 10
for i in self.worker_busy:
if not self.worker_busy[i]: