Skip to content

Commit

Permalink
chore(hapi-evm): reduce the number of old blocks sync per round
Browse files Browse the repository at this point in the history
  • Loading branch information
Torresmorah committed Nov 14, 2023
1 parent 83febfe commit 3100f26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hapi-evm/src/services/block.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const syncOldBlocks = async (): Promise<void> => {
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))
Expand Down

0 comments on commit 3100f26

Please sign in to comment.