connector

This commit is contained in:
4tochka 2019-05-10 20:56:53 +04:00
parent b70827524a
commit 116527847e

View File

@ -68,9 +68,9 @@ class BlockLoader:
new_requests = 0 new_requests = 0
if self.parent.block_preload._store_size < self.parent.block_preload_cache_limit: if self.parent.block_preload._store_size < self.parent.block_preload_cache_limit:
try: try:
if self.last_batch_size < 20000000: if self.last_batch_size < 8000000:
self.rpc_batch_limit += 10 self.rpc_batch_limit += 10
elif self.last_batch_size > 30000000 and self.rpc_batch_limit > 10: elif self.last_batch_size > 10000000 and self.rpc_batch_limit > 20:
self.rpc_batch_limit -= 10 self.rpc_batch_limit -= 10
if self.last_batch_size > 200: if self.last_batch_size > 200:
self.last_batch_size = 200 self.last_batch_size = 200