Skip to content

Commit

Permalink
Disable un-finalized block scan for gargantua
Browse files Browse the repository at this point in the history
  • Loading branch information
wliyongfeng committed Nov 28, 2024
1 parent 7d06777 commit 44824b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/packages/block-scan/src/scan/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ async function handleBlock({ block, author, events, height }) {
const db = getBlockDb();
await db.updateScanHeight(height);

if (height >= finalizedHeight - 100) {
if (
height >= finalizedHeight - 100 &&
!["gargantua"].includes(currentChain())
) {
await updateUnFinalized(height);
}
}
Expand Down

0 comments on commit 44824b4

Please sign in to comment.