func (b *BadgerTreeTransaction) SetRoot(n *Node) error {
	nodeHash := n.GetHash()

	return b.tx.Set([]byte("root"), nodeHash[:])
}
// SetRoot sets the root of the database.
SetRoot sets the root of the database.
// SetRoot sets the root of the database .
func (b *BadgerTreeTransaction) SetRoot(n *Node) error {
	nodeHash := n.GetHash()
	return b.tx.Set([]byte("root"), nodeHash[:])
}
func ( b * BadgerTreeTransaction ) SetRoot ( n * Node ) error { nodeHash := n . GetHash ( ) return b . tx . Set ( [ ] byte ( " " ) , nodeHash [ : ] ) }
SetRoot sets the root of the database.
SetRoot sets the root of the database .