func (m *MemoryBlockDB) GetBlockForHash(h chainhash.Hash) (*primitives.ShardBlock, error) {
	if b, found := m.blocks[h]; found {
		return &b, nil
	}
	return nil, fmt.Errorf("couldn't find block in database with hash %s", h)
}
// GetBlockForHash gets a block from the database.
GetBlockForHash gets a block from the database.
// GetBlockForHash gets a block from the database .
func (m *MemoryBlockDB) GetBlockForHash(h chainhash.Hash) (*primitives.ShardBlock, error) {
	if b, found := m.blocks[h]; found {
		return &b, nil
	}
	return nil, fmt.Errorf("couldn't find block in database with hash %s", h)
}
func ( m * MemoryBlockDB ) GetBlockForHash ( h chainhash . Hash ) ( * primitives . ShardBlock , error ) { if b , found := m . blocks [ h ] ; found { return & b , nil } return nil , fmt . Errorf ( " " , h ) }
GetBlockForHash gets a block from the database.
GetBlockForHash gets a block from the database .