func (b *Blockchain) GetBlockByHash(h chainhash.Hash) (*primitives.Block, error) {
	block, err := b.DB.GetBlockForHash(h)
	if err != nil {
		return nil, err
	}

	return block, nil
}
// GetBlockByHash gets a block by Hash.
GetBlockByHash gets a block by Hash.
// GetBlockByHash gets a block by Hash .
func (b *Blockchain) GetBlockByHash(h chainhash.Hash) (*primitives.Block, error) {
	block, err := b.DB.GetBlockForHash(h)
	if err != nil {
		return nil, err
	}
	return block, nil
}
func ( b * Blockchain ) GetBlockByHash ( h chainhash . Hash ) ( * primitives . Block , error ) { block , err := b . DB . GetBlockForHash ( h ) if err != nil { return nil , err } return block , nil }
GetBlockByHash gets a block by Hash.
GetBlockByHash gets a block by Hash .