mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
simplify path layerTree logic
This commit is contained in:
parent
691291b42b
commit
949972d6b1
1 changed files with 1 additions and 1 deletions
|
|
@ -187,7 +187,7 @@ func (tree *layerTree) cap(root common.Hash, layers int) error {
|
|||
}
|
||||
// diskLayer only has one and is the bottom layer.
|
||||
if dl := tree.bottom(); dl != nil && dl.isStale() {
|
||||
remove(dl.root)
|
||||
remove(dl.rootHash())
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue