From 5f8a77fc222d8a095558c64a5eefe6ee59d6aea9 Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Tue, 21 Oct 2025 18:26:55 +0800 Subject: [PATCH] triedb/pathdb: add default clause --- triedb/pathdb/history_indexer.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/triedb/pathdb/history_indexer.go b/triedb/pathdb/history_indexer.go index 18d8e28831..893ccd6523 100644 --- a/triedb/pathdb/history_indexer.go +++ b/triedb/pathdb/history_indexer.go @@ -165,6 +165,8 @@ func (b *batchIndexer) makeBatch() ethdb.Batch { size = estimatedStateHistoryIndexSize case typeTrienodeHistory: size = estimatedTrienodeHistoryIndexSize + default: + panic(fmt.Sprintf("unknown history type %d", b.typ)) } return b.db.NewBatchWithSize(size * estimatedIndexBatchSizeFactor * b.pending) }