Browse Source

Add comment to simple_merkle get_split_point (#3136)

* Add comment to simple_merkle get_split_point

* fix grammar error
pull/3141/head
Dev Ojha 6 years ago
committed by Ethan Buchman
parent
commit
55d7238708
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      crypto/merkle/simple_tree.go

+ 1
- 0
crypto/merkle/simple_tree.go View File

@ -32,6 +32,7 @@ func SimpleHashFromMap(m map[string][]byte) []byte {
return sm.Hash()
}
// getSplitPoint returns the largest power of 2 less than length
func getSplitPoint(length int) int {
if length < 1 {
panic("Trying to split a tree with size < 1")


Loading…
Cancel
Save