decrease sync chunk size (#988)

While mainnet performance is being worked on, this helps with the flow.
This commit is contained in:
Jacek Sieka 2020-05-08 08:17:40 +02:00 committed by GitHub
parent 3ffd0d7216
commit c1aff83b8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -553,7 +553,9 @@ proc runSyncLoop(node: BeaconNode) {.async.} =
var syncman = newSyncManager[Peer, PeerID](
node.network.peerPool, getLocalHeadSlot, getLocalWallSlot,
updateLocalBlocks
updateLocalBlocks,
# TODO increase when block processing perf improves
chunkSize = 8
)
await syncman.sync()