Add a todo for using an iterator

This commit is contained in:
Prathamesh Musale 2022-12-13 20:24:11 +05:30
parent 24a68fd7ba
commit 13c75f50e2

View File

@ -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()) 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 // Get all the paths
headPath, stemPaths, slicePaths, err := getPaths(path, depth) headPath, stemPaths, slicePaths, err := getPaths(path, depth)
if err != nil { if err != nil {