From 3100f26c1fafd41b0c16aab9512ecbfba3ee5155 Mon Sep 17 00:00:00 2001 From: Torresmorah Date: Tue, 14 Nov 2023 09:49:48 -0600 Subject: [PATCH] chore(hapi-evm): reduce the number of old blocks sync per round --- hapi-evm/src/services/block.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hapi-evm/src/services/block.service.ts b/hapi-evm/src/services/block.service.ts index 5309552c..7766009a 100644 --- a/hapi-evm/src/services/block.service.ts +++ b/hapi-evm/src/services/block.service.ts @@ -139,7 +139,7 @@ const syncOldBlocks = async (): Promise => { console.log( `🚦 Syncing blocks behind, pending ${nextBlockToNumber - nextBlock} ` ) - blocksInserted = Math.min(100, nextBlockToNumber - nextBlock) + blocksInserted = Math.min(25, nextBlockToNumber - nextBlock) const blockPromises = [] for (let index = 0; index < blocksInserted; index++) { blockPromises.push(syncFullBlock(nextBlock + index))