<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def previous_hashes(self) -> Optional[Iterable[Hash32]]: """ Convenience API for accessing the previous 255 block hashes. """

        return self.get_prev_hashes(self.header.parent_hash, self.chaindb)