func (b *BadgerTreeTransaction) GetNode(nodeHash chainhash.Hash) (*Node, error) {
	nodeKey := getTreeKey(nodeHash[:])

	nodeItem, err := b.tx.Get(nodeKey)
	if err != nil {
		return nil, errors.Wrapf(err, "error getting node %s", nodeHash)
	}

	nodeSer, err := nodeItem.ValueCopy(nil)
	if err != nil {
		return nil, err
	}

	return DeserializeNode(nodeSer)
}
// GetNode gets a node from the database.
GetNode gets a node from the database.
// GetNode gets a node from the database .
func (b *BadgerTreeTransaction) GetNode(nodeHash chainhash.Hash) (*Node, error) {
	nodeKey := getTreeKey(nodeHash[:])
	nodeItem, err := b.tx.Get(nodeKey)
	if err != nil {
		return nil, errors.Wrapf(err, "error getting node %s", nodeHash)
	}
	nodeSer, err := nodeItem.ValueCopy(nil)
	if err != nil {
		return nil, err
	}
	return DeserializeNode(nodeSer)
}
func ( b * BadgerTreeTransaction ) GetNode ( nodeHash chainhash . Hash ) ( * Node , error ) { nodeKey := getTreeKey ( nodeHash [ : ] ) nodeItem , err := b . tx . Get ( nodeKey ) if err != nil { return nil , errors . Wrapf ( err , " " , nodeHash ) } nodeSer , err := nodeItem . ValueCopy ( nil ) if err != nil { return nil , err } return DeserializeNode ( nodeSer ) }
GetNode gets a node from the database.
GetNode gets a node from the database .