connector

This commit is contained in:
4tochka 2019-05-10 18:57:24 +04:00
parent ca6010ccba
commit 783243681f

View File

@ -72,6 +72,8 @@ class BlockLoader:
self.rpc_batch_limit += 10
elif self.last_batch_size > 70000000 and self.rpc_batch_limit > 10:
self.rpc_batch_limit -= 10
if self.last_batch_size > 800:
self.last_batch_size = 800
for i in self.worker_busy:
if not self.worker_busy[i]:
self.worker_busy[i] = True