connector

This commit is contained in:
4tochka 2019-06-03 22:47:33 +04:00
parent 1e031f2944
commit 385acb4f49

View File

@ -73,10 +73,10 @@ class BlockLoader:
if self.last_batch_size < 1000000 and self.rpc_batch_limit < 450:
self.rpc_batch_limit += 50
self.log.warning("rpc batch limit %s " % self.rpc_batch_limit)
elif self.last_batch_size > 40000000 and self.rpc_batch_limit > 80:
elif self.last_batch_size > 40000000 and self.rpc_batch_limit > 100:
self.rpc_batch_limit -= 40
self.log.warning("rpc batch limit %s " % self.rpc_batch_limit)
elif self.last_batch_size > 80000000 and self.rpc_batch_limit < 80:
elif self.last_batch_size > 80000000 and self.rpc_batch_limit < 100:
self.rpc_batch_limit = 20
self.log.warning("rpc batch limit %s " % self.rpc_batch_limit)