func (t *Tree) Hash() (chainhash.Hash, error) {
	out := primitives.EmptyTree
	err := t.View(func(tx TreeTransactionAccess) error {
		h, err := tx.Hash()
		if err != nil {
			return err
		}
		out = *h
		return nil
	})
	return out, err
}
// Hash gets the hash of the tree.
Hash gets the hash of the tree.
// Hash gets the hash of the tree .
func (t *Tree) Hash() (chainhash.Hash, error) {
	out := primitives.EmptyTree
	err := t.View(func(tx TreeTransactionAccess) error {
		h, err := tx.Hash()
		if err != nil {
			return err
		}
		out = *h
		return nil
	})
	return out, err
}
func ( t * Tree ) Hash ( ) ( chainhash . Hash , error ) { out := primitives . EmptyTree err := t . View ( func ( tx TreeTransactionAccess ) error { h , err := tx . Hash ( ) if err != nil { return err } out = * h return nil } ) return out , err }
Hash gets the hash of the tree.
Hash gets the hash of the tree .