Remove unnecessary TODO

This commit is contained in:
Prathamesh Musale 2022-12-19 11:48:57 +05:30
parent d40bbc46eb
commit 7a04ee73ff
2 changed files with 0 additions and 2 deletions

View File

@ -938,7 +938,6 @@ func (b *Backend) getSliceStem(headPath []byte, t state.Trie, response *GetSlice
nodePath := make([]byte, len(headPath[:i])) nodePath := make([]byte, len(headPath[:i]))
copy(nodePath, headPath[:i]) copy(nodePath, headPath[:i])
// TODO: verify doesn't return for non-existent node
rawNode, _, err := t.(*trie.StateTrie).TryGetNode(trie.HexToCompact(nodePath)) rawNode, _, err := t.(*trie.StateTrie).TryGetNode(trie.HexToCompact(nodePath))
if err != nil { if err != nil {
return err return err

View File

@ -339,7 +339,6 @@ func fillSliceNodeData(
storage bool, storage bool,
) (int64, error) { ) (int64, error) {
// Populate the nodes map // Populate the nodes map
// nodeVal := node.NodeValue
nodeValHash := crypto.Keccak256Hash(node.NodeValue) nodeValHash := crypto.Keccak256Hash(node.NodeValue)
nodesMap[common.Bytes2Hex(nodeValHash.Bytes())] = common.Bytes2Hex(node.NodeValue) nodesMap[common.Bytes2Hex(nodeValHash.Bytes())] = common.Bytes2Hex(node.NodeValue)