func (t *TreeMemoryCacheTransaction) SetNode(n *Node) error {
	if !t.update {
		return errors.New("set node called on View transaction")
	}

	nodeHash := n.GetHash()
	t.dirty[nodeHash] = *n

	return nil
}
// SetNode sets a node in the transaction.
SetNode sets a node in the transaction.
// SetNode sets a node in the transaction .
func (t *TreeMemoryCacheTransaction) SetNode(n *Node) error {
	if !t.update {
		return errors.New("set node called on View transaction")
	}
	nodeHash := n.GetHash()
	t.dirty[nodeHash] = *n
	return nil
}
func ( t * TreeMemoryCacheTransaction ) SetNode ( n * Node ) error { if ! t . update { return errors . New ( " " ) } nodeHash := n . GetHash ( ) t . dirty [ nodeHash ] = * n return nil }
SetNode sets a node in the transaction.
SetNode sets a node in the transaction .