mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-17 18:30:45 +00:00
triedb/pathdb: improve error message
This commit is contained in:
parent
f7866a0118
commit
f99bf44e0e
1 changed files with 1 additions and 1 deletions
|
|
@ -349,7 +349,7 @@ func (db *Database) HistoricNodeReader(root common.Hash) (*HistoricalNodeReader,
|
||||||
// are not accessible.
|
// are not accessible.
|
||||||
meta, err := readTrienodeMetadata(db.trienodeFreezer, *id+1)
|
meta, err := readTrienodeMetadata(db.trienodeFreezer, *id+1)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err // e.g., the referred trienode history has been pruned
|
return nil, fmt.Errorf("state %#x is not available", root) // e.g., the referred trienode history has been pruned
|
||||||
}
|
}
|
||||||
if meta.parent != root {
|
if meta.parent != root {
|
||||||
return nil, fmt.Errorf("state %#x is not canonincal", root)
|
return nil, fmt.Errorf("state %#x is not canonincal", root)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue