Skip to content

Commit 5f8a77f

Browse files
committed
triedb/pathdb: add default clause
1 parent 7c1db79 commit 5f8a77f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

triedb/pathdb/history_indexer.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ func (b *batchIndexer) makeBatch() ethdb.Batch {
165165
size = estimatedStateHistoryIndexSize
166166
case typeTrienodeHistory:
167167
size = estimatedTrienodeHistoryIndexSize
168+
default:
169+
panic(fmt.Sprintf("unknown history type %d", b.typ))
168170
}
169171
return b.db.NewBatchWithSize(size * estimatedIndexBatchSizeFactor * b.pending)
170172
}

0 commit comments

Comments
 (0)