Remove unnecessary TODO
This commit is contained in:
parent
d40bbc46eb
commit
7a04ee73ff
@ -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
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user