This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
tendermint
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
221
Wiki
Activity
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
4a037f9fe6
commit
55d7238708
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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"
)
Write
Preview
Loading…
Cancel
Save