Implement getSlice API #206

Merged
prathamesh0 merged 21 commits from pm-get-slice into v4 2022-12-19 08:42:23 +00:00
Showing only changes of commit 13c75f50e2 - Show all commits

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())
}
// 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 {