Skip to content

Commit

Permalink
Minor comment update
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Nov 4, 2022
1 parent 5015920 commit 2d2cf27
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/trie/trie.go
Original file line number Diff line number Diff line change
Expand Up @@ -1322,8 +1322,8 @@ func (t *Trie) handleDeletion(branch *Node, key []byte,
return branch, branchChildMerged, nil
case childrenCount == 0 && branch.SubValue != nil:
// The branch passed to handleDeletion is always a modified branch
// so the original branch Merkle value is already tracked in the deleted
// Merkle values map.
// so the original branch node hash is already tracked in the
// pending deltas.
const branchChildMerged = false
commonPrefixLength := lenCommonPrefix(branch.Key, key)
return &Node{
Expand All @@ -1334,8 +1334,8 @@ func (t *Trie) handleDeletion(branch *Node, key []byte,
}, branchChildMerged, nil
case childrenCount == 1 && branch.SubValue == nil:
// The branch passed to handleDeletion is always a modified branch
// so the original branch Merkle value is already tracked in the deleted
// Merkle values map.
// so the original branch node hash is already tracked in the
// pending deltas.
const branchChildMerged = true
childIndex := firstChildIndex
child := branch.Children[firstChildIndex]
Expand Down

0 comments on commit 2d2cf27

Please sign in to comment.