Skip to content

Commit

Permalink
Update go/ops.go
Browse files Browse the repository at this point in the history
Co-authored-by: Damian Nolan <[email protected]>
  • Loading branch information
colin-axner and damiannolan authored Oct 16, 2024
1 parent d8f9ef6 commit b097d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/ops.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
// validateIavlOps validates the prefix to ensure it begins with
// the height, size, and version of the IAVL tree. Each varint must be a bounded value.
// In addition, the remaining bytes are validated to ensure they correspond to the correct
// length. The layerNum is the tree depth.
// length. The layerNum is the inverse of the tree depth, i.e. depth=0 means leaf, depth>=1 means inner node
func validateIavlOps(op opType, layerNum int) error {
r := bytes.NewReader(op.GetPrefix())

Expand Down

0 comments on commit b097d9a

Please sign in to comment.