mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-17 04:11:37 +00:00
triedb/pathdb: fix typo (#34762)
This commit is contained in:
parent
53ff723cc7
commit
78505e48dd
1 changed files with 2 additions and 2 deletions
|
|
@ -229,7 +229,7 @@ func (db *Database) HistoricReader(root common.Hash) (*HistoricalStateReader, er
|
||||||
return nil, err // e.g., the referred state history has been pruned
|
return nil, err // e.g., the referred state 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 canonical", root)
|
||||||
}
|
}
|
||||||
return &HistoricalStateReader{
|
return &HistoricalStateReader{
|
||||||
id: *id,
|
id: *id,
|
||||||
|
|
@ -352,7 +352,7 @@ func (db *Database) HistoricNodeReader(root common.Hash) (*HistoricalNodeReader,
|
||||||
return nil, fmt.Errorf("state %#x is not available", root) // 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 canonical", root)
|
||||||
}
|
}
|
||||||
return &HistoricalNodeReader{
|
return &HistoricalNodeReader{
|
||||||
id: *id,
|
id: *id,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue