From 7a04ee73ff92b703d484043bd8e82655f21a1198 Mon Sep 17 00:00:00 2001 From: prathamesh0 Date: Mon, 19 Dec 2022 11:48:57 +0530 Subject: [PATCH] Remove unnecessary TODO --- pkg/eth/backend.go | 1 - pkg/eth/backend_utils.go | 1 - 2 files changed, 2 deletions(-) diff --git a/pkg/eth/backend.go b/pkg/eth/backend.go index d2773204..1123a875 100644 --- a/pkg/eth/backend.go +++ b/pkg/eth/backend.go @@ -938,7 +938,6 @@ func (b *Backend) getSliceStem(headPath []byte, t state.Trie, response *GetSlice nodePath := make([]byte, len(headPath[:i])) copy(nodePath, headPath[:i]) - // TODO: verify doesn't return for non-existent node rawNode, _, err := t.(*trie.StateTrie).TryGetNode(trie.HexToCompact(nodePath)) if err != nil { return err diff --git a/pkg/eth/backend_utils.go b/pkg/eth/backend_utils.go index cca1c52f..68655604 100644 --- a/pkg/eth/backend_utils.go +++ b/pkg/eth/backend_utils.go @@ -339,7 +339,6 @@ func fillSliceNodeData( storage bool, ) (int64, error) { // Populate the nodes map - // nodeVal := node.NodeValue nodeValHash := crypto.Keccak256Hash(node.NodeValue) nodesMap[common.Bytes2Hex(nodeValHash.Bytes())] = common.Bytes2Hex(node.NodeValue)