From 602890ba439c8ae5cd046765ae356a9a98fdf6fc Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Mon, 19 May 2025 09:32:14 +0800 Subject: [PATCH] triedb/pathdb: update func description --- triedb/pathdb/layertree.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/triedb/pathdb/layertree.go b/triedb/pathdb/layertree.go index eb8b30dfe1..b2f3f7f37d 100644 --- a/triedb/pathdb/layertree.go +++ b/triedb/pathdb/layertree.go @@ -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()