diff --git a/lib/trie/trie.go b/lib/trie/trie.go index 22824929072..d1cdf33dfb7 100644 --- a/lib/trie/trie.go +++ b/lib/trie/trie.go @@ -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{ @@ -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]