triedb/pathdb: add default clause

This commit is contained in:
Gary Rong 2025-10-21 18:26:55 +08:00
parent 7c1db79599
commit 5f8a77fc22

View file

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