func (t *TreeTransaction) Hash() (*chainhash.Hash, error) {
	treeHash := primitives.EmptyTree

	r, err := t.tx.Root()
	if err != nil {
		return nil, err
	}
	if r == nil || r.Empty() {
		return &treeHash, nil
	}
	treeHash = r.GetHash()

	return &treeHash, err
}
// Hash get the root hash
Hash get the root hash
// Hash get the root hash
func (t *TreeTransaction) Hash() (*chainhash.Hash, error) {
	treeHash := primitives.EmptyTree
	r, err := t.tx.Root()
	if err != nil {
		return nil, err
	}
	if r == nil || r.Empty() {
		return &treeHash, nil
	}
	treeHash = r.GetHash()
	return &treeHash, err
}
func ( t * TreeTransaction ) Hash ( ) ( * chainhash . Hash , error ) { treeHash := primitives . EmptyTree r , err := t . tx . Root ( ) if err != nil { return nil , err } if r == nil || r . Empty ( ) { return & treeHash , nil } treeHash = r . GetHash ( ) return & treeHash , err }
Hash get the root hash
Hash get the root hash