func (db *InMemoryDB) GetBlockForHash(h chainhash.Hash, transaction ...interface{}) (*primitives.Block, error) {
	db.lock.Lock()
	defer db.lock.Unlock()
	out, found := db.DB[h]
	if !found {
		return nil, fmt.Errorf("could not find block with hash")
	}
	return &out, nil
}
// GetBlockForHash is a database lookup function
GetBlockForHash is a database lookup function
// GetBlockForHash is a database lookup function
func (db *InMemoryDB) GetBlockForHash(h chainhash.Hash, transaction ...interface{}) (*primitives.Block, error) {
	db.lock.Lock()
	defer db.lock.Unlock()
	out, found := db.DB[h]
	if !found {
		return nil, fmt.Errorf("could not find block with hash")
	}
	return &out, nil
}
func ( db * InMemoryDB ) GetBlockForHash ( h chainhash . Hash , transaction ... interface { } ) ( * primitives . Block , error ) { db . lock . Lock ( ) defer db . lock . Unlock ( ) out , found := db . DB [ h ] if ! found { return nil , fmt . Errorf ( " " ) } return & out , nil }
GetBlockForHash is a database lookup function
GetBlockForHash is a database lookup function