connector

This commit is contained in:
4tochka 2019-05-10 19:02:09 +04:00
parent 783243681f
commit 58dd2b8fb8

View File

@ -69,9 +69,9 @@ class BlockLoader:
if self.parent.block_preload._store_size < self.parent.block_preload_cache_limit:
try:
if self.last_batch_size < 50000000:
self.rpc_batch_limit += 10
self.rpc_batch_limit += 1
elif self.last_batch_size > 70000000 and self.rpc_batch_limit > 10:
self.rpc_batch_limit -= 10
self.rpc_batch_limit -= 1
if self.last_batch_size > 800:
self.last_batch_size = 800
for i in self.worker_busy: