func (t *TrackingState) Hash() (*chainhash.Hash, error) {
	var out *chainhash.Hash
	err := t.View(func(a csmt.TreeTransactionAccess) error {
		outHash, err := a.Hash()
		if err != nil {
			return err
		}
		out = outHash

		return nil
	})
	if err != nil {
		return nil, err
	}
	return out, err
}
// Hash returns the current tree root.
Hash returns the current tree root.
// Hash returns the current tree root .
func (t *TrackingState) Hash() (*chainhash.Hash, error) {
	var out *chainhash.Hash
	err := t.View(func(a csmt.TreeTransactionAccess) error {
		outHash, err := a.Hash()
		if err != nil {
			return err
		}
		out = outHash
		return nil
	})
	if err != nil {
		return nil, err
	}
	return out, err
}
func ( t * TrackingState ) Hash ( ) ( * chainhash . Hash , error ) { var out * chainhash . Hash err := t . View ( func ( a csmt . TreeTransactionAccess ) error { outHash , err := a . Hash ( ) if err != nil { return err } out = outHash return nil } ) if err != nil { return nil , err } return out , err }
Hash returns the current tree root.
Hash returns the current tree root .