def get_past_blocks(self, block, num_past):
        result = []
        current = block
        for _ in range(num_past):
            current = self.data_manager.get_block(current.previous_hash)
            if current is None:
                return None
            result.append(current)
        return result