mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-24 22:32: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:
parent
4a037f9fe6
commit
55d7238708
@ -32,6 +32,7 @@ func SimpleHashFromMap(m map[string][]byte) []byte {
|
|||||||
return sm.Hash()
|
return sm.Hash()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// getSplitPoint returns the largest power of 2 less than length
|
||||||
func getSplitPoint(length int) int {
|
func getSplitPoint(length int) int {
|
||||||
if length < 1 {
|
if length < 1 {
|
||||||
panic("Trying to split a tree with size < 1")
|
panic("Trying to split a tree with size < 1")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user