From 11956a89bbfe1c9bf6e26f66078835231c954e80 Mon Sep 17 00:00:00 2001 From: dustinxie Date: Wed, 25 Dec 2024 16:58:38 -0800 Subject: [PATCH] [blockindex] reduce indexbuilder PutBlocks() size to 100 (#4531) --- blockindex/indexbuilder.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blockindex/indexbuilder.go b/blockindex/indexbuilder.go index cbdf607bda..2a873516d0 100644 --- a/blockindex/indexbuilder.go +++ b/blockindex/indexbuilder.go @@ -144,8 +144,8 @@ func (ib *IndexBuilder) init(ctx context.Context) error { return err } blks = append(blks, blk) - // commit once every 5000 blocks - if startHeight%5000 == 0 || startHeight == tipHeight { + // commit once every 100 blocks + if startHeight%100 == 0 || startHeight == tipHeight { if err := ib.indexer.PutBlocks(gCtx, blks); err != nil { return err }