Add comment to simple_merkle get_split_point (#3136)

* Add comment to simple_merkle get_split_point

* fix grammar error
This commit is contained in:
Dev Ojha 2019-01-16 15:03:19 -06:00 committed by Ethan Buchman
parent 4a037f9fe6
commit 55d7238708

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")