mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-20 22:26:15 +00:00
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user