ddad9ac9a3
buildMerkleTree() is internal to the hash package and if anyone calls it with `len(leaves) == 0` he deserves a panic. As it's the only error case in it, we can remove error value return from this function and simplify NewMerkleTree(). |
||
---|---|---|
.. | ||
hash.go | ||
hash_test.go | ||
merkle_tree.go | ||
merkle_tree_test.go |