func (b *BadgerTreeTransaction) SetNode(n *Node) error {
	nodeSer := n.Serialize()
	nodeHash := n.GetHash()
	nodeKey := getTreeKey(nodeHash[:])

	return b.tx.Set(nodeKey, nodeSer)
}
// SetNode sets a node in the database.
SetNode sets a node in the database.
// SetNode sets a node in the database .
func (b *BadgerTreeTransaction) SetNode(n *Node) error {
	nodeSer := n.Serialize()
	nodeHash := n.GetHash()
	nodeKey := getTreeKey(nodeHash[:])
	return b.tx.Set(nodeKey, nodeSer)
}
func ( b * BadgerTreeTransaction ) SetNode ( n * Node ) error { nodeSer := n . Serialize ( ) nodeHash := n . GetHash ( ) nodeKey := getTreeKey ( nodeHash [ : ] ) return b . tx . Set ( nodeKey , nodeSer ) }
SetNode sets a node in the database.
SetNode sets a node in the database .