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) }