func (b *BadgerTreeTransaction) Get(key chainhash.Hash) (*chainhash.Hash, error) {
	var val chainhash.Hash

	valItem, err := b.tx.Get(getKVKey(key[:]))
	if err != nil {
		return nil, err
	}

	_, err = valItem.ValueCopy(val[:])
	if err != nil {
		return nil, err
	}

	return &val, nil
}
// Get gets a value from the key-value store.
Get gets a value from the key-value store.
// Get gets a value from the key - value store .
func (b *BadgerTreeTransaction) Get(key chainhash.Hash) (*chainhash.Hash, error) {
	var val chainhash.Hash
	valItem, err := b.tx.Get(getKVKey(key[:]))
	if err != nil {
		return nil, err
	}
	_, err = valItem.ValueCopy(val[:])
	if err != nil {
		return nil, err
	}
	return &val, nil
}
func ( b * BadgerTreeTransaction ) Get ( key chainhash . Hash ) ( * chainhash . Hash , error ) { var val chainhash . Hash valItem , err := b . tx . Get ( getKVKey ( key [ : ] ) ) if err != nil { return nil , err } _ , err = valItem . ValueCopy ( val [ : ] ) if err != nil { return nil , err } return & val , nil }
Get gets a value from the key-value store.
Get gets a value from the key - value store .