mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
core/rawdb: restore error message
This commit is contained in:
parent
65c0ea433a
commit
f86b4ab086
1 changed files with 1 additions and 0 deletions
|
|
@ -620,6 +620,7 @@ func (t *freezerTable) truncateHead(items uint64) error {
|
||||||
// at the head, so we have to align the table down to the new head.
|
// at the head, so we have to align the table down to the new head.
|
||||||
return t.resetTo(items)
|
return t.resetTo(items)
|
||||||
}
|
}
|
||||||
|
return errors.New("truncation below tail")
|
||||||
}
|
}
|
||||||
|
|
||||||
// We need to truncate, save the old size for metrics tracking
|
// We need to truncate, save the old size for metrics tracking
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue