From 13c75f50e2072385494a59f88d0ef1fa85e50664 Mon Sep 17 00:00:00 2001 From: prathamesh0 Date: Tue, 13 Dec 2022 20:24:11 +0530 Subject: [PATCH] Add a todo for using an iterator --- pkg/eth/backend.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/eth/backend.go b/pkg/eth/backend.go index 6c2d6caf..5b5a0114 100644 --- a/pkg/eth/backend.go +++ b/pkg/eth/backend.go @@ -917,6 +917,7 @@ func (b *Backend) GetStateSlice(path string, depth int, root common.Hash) (*GetS return nil, fmt.Errorf("GetStateSlice blockheight lookup error: %s", err.Error()) } + // TODO: Use an iterator instead of doing an exhausitive database search for all possible paths at the given depth // Get all the paths headPath, stemPaths, slicePaths, err := getPaths(path, depth) if err != nil {