trie: update the `valid` function comments (#29809)

pull/29816/head
cocoyeal 6 months ago committed by GitHub
parent 473ee8fc07
commit be5df74ed5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      trie/sync.go

@ -157,7 +157,7 @@ type nodeOp struct {
hash common.Hash // hash of the node content (empty for node deletion) hash common.Hash // hash of the node content (empty for node deletion)
} }
// isDelete indicates if the operation is a database deletion. // valid checks whether the node operation is valid.
func (op *nodeOp) valid() bool { func (op *nodeOp) valid() bool {
if op.del && len(op.blob) != 0 { if op.del && len(op.blob) != 0 {
return false return false

Loading…
Cancel
Save