func (t *TreeMemoryCacheTransaction) Root() (*Node, error) {
	if t.root.IsEqual(&primitives.EmptyTree) {
		return nil, nil
	}

	if n, found := t.dirty[t.root]; found {
		return &n, nil
	}
	return t.underlyingTransaction.GetNode(t.root)
}
// Root gets the current root of the transaction.
Root gets the current root of the transaction.
// Root gets the current root of the transaction .
func (t *TreeMemoryCacheTransaction) Root() (*Node, error) {
	if t.root.IsEqual(&primitives.EmptyTree) {
		return nil, nil
	}
	if n, found := t.dirty[t.root]; found {
		return &n, nil
	}
	return t.underlyingTransaction.GetNode(t.root)
}
func ( t * TreeMemoryCacheTransaction ) Root ( ) ( * Node , error ) { if t . root . IsEqual ( & primitives . EmptyTree ) { return nil , nil } if n , found := t . dirty [ t . root ] ; found { return & n , nil } return t . underlyingTransaction . GetNode ( t . root ) }
Root gets the current root of the transaction.
Root gets the current root of the transaction .