mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-25 23:42:23 +00:00
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 |