mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
triedb/pathdb: add default clause
This commit is contained in:
parent
7c1db79599
commit
5f8a77fc22
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue