Skip to content

Commit

Permalink
Merge pull request #1387 from edenia/chore/reduce-evm-old-blocks-sync…
Browse files Browse the repository at this point in the history
…-round

chore(hapi-evm): reduce the number of old blocks sync per round
  • Loading branch information
xavier506 committed Nov 14, 2023
2 parents 83febfe + 3100f26 commit 90acb04
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 90acb04

Please sign in to comment.