func (t *TrackingState) Reset() error {
	t.updateWitnesses = nil
	t.verificationWitnesses = nil
	var r *chainhash.Hash
	err := t.fullState.View(func(a csmt.TreeTransactionAccess) error {
		rootHash, err := a.Hash()
		if err != nil {
			return err
		}

		r = rootHash

		return nil
	})
	if err != nil {
		return err
	}
	t.initialRoot = *r

	return nil
}
// Reset resets all of the witnesses, but not the state.
Reset resets all of the witnesses, but not the state.
// Reset resets all of the witnesses but not the state .
func (t *TrackingState) Reset() error {
	t.updateWitnesses = nil
	t.verificationWitnesses = nil
	var r *chainhash.Hash
	err := t.fullState.View(func(a csmt.TreeTransactionAccess) error {
		rootHash, err := a.Hash()
		if err != nil {
			return err
		}
		r = rootHash
		return nil
	})
	if err != nil {
		return err
	}
	t.initialRoot = *r
	return nil
}
func ( t * TrackingState ) Reset ( ) error { t . updateWitnesses = nil t . verificationWitnesses = nil var r * chainhash . Hash err := t . fullState . View ( func ( a csmt . TreeTransactionAccess ) error { rootHash , err := a . Hash ( ) if err != nil { return err } r = rootHash return nil } ) if err != nil { return err } t . initialRoot = * r return nil }
Reset resets all of the witnesses, but not the state.
Reset resets all of the witnesses but not the state .