connector
This commit is contained in:
parent
58dd2b8fb8
commit
b70827524a
@ -68,12 +68,12 @@ 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 < 50000000:
|
if self.last_batch_size < 20000000:
|
||||||
self.rpc_batch_limit += 1
|
self.rpc_batch_limit += 10
|
||||||
elif self.last_batch_size > 70000000 and self.rpc_batch_limit > 10:
|
elif self.last_batch_size > 30000000 and self.rpc_batch_limit > 10:
|
||||||
self.rpc_batch_limit -= 1
|
self.rpc_batch_limit -= 10
|
||||||
if self.last_batch_size > 800:
|
if self.last_batch_size > 200:
|
||||||
self.last_batch_size = 800
|
self.last_batch_size = 200
|
||||||
for i in self.worker_busy:
|
for i in self.worker_busy:
|
||||||
if not self.worker_busy[i]:
|
if not self.worker_busy[i]:
|
||||||
self.worker_busy[i] = True
|
self.worker_busy[i] = True
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user