def METHOD_NAME(self, inv):
    responses = []
    for i in inv:
        if (i.type == 2): # MSG_BLOCK
            block = self.get(i.hash)
            if block is not None:
                responses.append(msg_block(block))
    return responses