func (t *TreeMemoryCacheTransaction) Set(key chainhash.Hash, val chainhash.Hash) error {
	if !t.update {
		return errors.New("set called on View transaction")
	}

	t.dirtyKV[key] = val

	return nil
}
// Set sets a value in the transaction.
Set sets a value in the transaction.
// Set sets a value in the transaction .
func (t *TreeMemoryCacheTransaction) Set(key chainhash.Hash, val chainhash.Hash) error {
	if !t.update {
		return errors.New("set called on View transaction")
	}
	t.dirtyKV[key] = val
	return nil
}
func ( t * TreeMemoryCacheTransaction ) Set ( key chainhash . Hash , val chainhash . Hash ) error { if ! t . update { return errors . New ( " " ) } t . dirtyKV [ key ] = val return nil }
Set sets a value in the transaction.
Set sets a value in the transaction .