From 9d75b7e6be06ad8ef5e04db1973d33af00ed5e76 Mon Sep 17 00:00:00 2001 From: miles <66052478+miles-six@users.noreply.github.com> Date: Tue, 19 Mar 2024 22:23:42 +0800 Subject: [PATCH] Update iterator.go --- core/state/snapshot/iterator.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/state/snapshot/iterator.go b/core/state/snapshot/iterator.go index 350d6b9183..c1a196c7ff 100644 --- a/core/state/snapshot/iterator.go +++ b/core/state/snapshot/iterator.go @@ -89,7 +89,7 @@ func (dl *diffLayer) AccountIterator(seek common.Hash) AccountIterator { index := sort.Search(len(hashes), func(i int) bool { return bytes.Compare(seek[:], hashes[i][:]) <= 0 }) - // Assemble and returned the already sought iterator + // Assemble and returned the already seeked iterator return &diffAccountIterator{ layer: dl, keys: hashes[index:], @@ -255,7 +255,7 @@ func (dl *diffLayer) StorageIterator(account common.Hash, seek common.Hash) (Sto index := sort.Search(len(hashes), func(i int) bool { return bytes.Compare(seek[:], hashes[i][:]) <= 0 }) - // Assemble and returned the already sought iterator + // Assemble and returned the already seeked iterator return &diffStorageIterator{ layer: dl, account: account,