connector

This commit is contained in:
4tochka 2019-05-10 18:29:05 +04:00
parent 749bcd0fbd
commit 2f703aaea4

View File

@ -165,7 +165,7 @@ class BlockLoader:
if msg_type == b'result':
self.worker_busy[index] = False
if len(msg) < 80000000:
if len(msg) < 80000000 and self.rpc_batch_limit < 300:
self.rpc_batch_limit += 10
elif len(msg) > 100000000 and self.rpc_batch_limit > 10:
self.rpc_batch_limit -= 10