mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
triedb/pathdb: update func description
This commit is contained in:
parent
c02137bc6f
commit
602890ba43
1 changed files with 4 additions and 4 deletions
|
|
@ -304,8 +304,8 @@ func (tree *layerTree) bottom() *diskLayer {
|
|||
return tree.base
|
||||
}
|
||||
|
||||
// lookupAccount returns the layer that is confirmed to contain the account data
|
||||
// being searched for.
|
||||
// lookupAccount returns the layer that is guaranteed to contain the account data
|
||||
// corresponding to the specified state root being queried.
|
||||
func (tree *layerTree) lookupAccount(accountHash common.Hash, state common.Hash) (layer, error) {
|
||||
// Hold the read lock to prevent the unexpected layer changes
|
||||
tree.lock.RLock()
|
||||
|
|
@ -322,8 +322,8 @@ func (tree *layerTree) lookupAccount(accountHash common.Hash, state common.Hash)
|
|||
return l, nil
|
||||
}
|
||||
|
||||
// lookupStorage returns the layer that is confirmed to contain the storage slot
|
||||
// data being searched for.
|
||||
// lookupStorage returns the layer that is guaranteed to contain the storage slot
|
||||
// data corresponding to the specified state root being queried.
|
||||
func (tree *layerTree) lookupStorage(accountHash common.Hash, slotHash common.Hash, state common.Hash) (layer, error) {
|
||||
// Hold the read lock to prevent the unexpected layer changes
|
||||
tree.lock.RLock()
|
||||
|
|
|
|||
Loading…
Reference in a new issue