Skip to content

Commit

Permalink
deletedMerkleValueBytes -> deletedMerkleValue
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Sep 22, 2022
1 parent df56b61 commit c304159
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/trie/trie.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ func updateGeneration(currentNode *Node, trieGeneration uint64,

// The hash of the node from a previous snapshotted trie
// is usually already computed.
deletedMerkleValueBytes := currentNode.MerkleValue
if len(deletedMerkleValueBytes) > 0 {
deletedMerkleValueString := string(deletedMerkleValueBytes)
deletedMerkleValue := currentNode.MerkleValue
if len(deletedMerkleValue) > 0 {
deletedMerkleValueString := string(deletedMerkleValue)
deletedMerkleValues[deletedMerkleValueString] = struct{}{}
}

Expand Down

0 comments on commit c304159

Please sign in to comment.