Skip to content

Commit b097d9a

Browse files
Update go/ops.go
Co-authored-by: Damian Nolan <[email protected]>
1 parent d8f9ef6 commit b097d9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/ops.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
// validateIavlOps validates the prefix to ensure it begins with
2424
// the height, size, and version of the IAVL tree. Each varint must be a bounded value.
2525
// In addition, the remaining bytes are validated to ensure they correspond to the correct
26-
// length. The layerNum is the tree depth.
26+
// length. The layerNum is the inverse of the tree depth, i.e. depth=0 means leaf, depth>=1 means inner node
2727
func validateIavlOps(op opType, layerNum int) error {
2828
r := bytes.NewReader(op.GetPrefix())
2929

0 commit comments

Comments
 (0)