mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-25 07:56:16 +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.
|
||||
meta, err := readTrienodeMetadata(db.trienodeFreezer, *id+1)
|
||||
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 {
|
||||
return nil, fmt.Errorf("state %#x is not canonincal", root)
|
||||
|
|
|
|||
Loading…
Reference in a new issue