mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
update the valid function comments.
This commit is contained in:
parent
473ee8fc07
commit
f2730d3781
1 changed files with 4 additions and 1 deletions
|
|
@ -157,7 +157,10 @@ type nodeOp struct {
|
|||
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.
|
||||
//
|
||||
// for node deletion, the node blob must be zero-length.
|
||||
// for node update, the node blob must be non-zero-length.
|
||||
func (op *nodeOp) valid() bool {
|
||||
if op.del && len(op.blob) != 0 {
|
||||
return false
|
||||
|
|
|
|||
Loading…
Reference in a new issue