oss_server/explorer/update_db.py
def _get_next_blk_file_info(self):
        """Return next blk file path according to the latest Datadir or None if next blk file does not exist."""
        datadir = self._get_or_create_datadir()
        file_name = 'blk{:05d}.dat'.format(datadir.blkfile_number + 1)
        file_path = os.path.join(datadir.dirname, file_name)
        if os.path.exists(file_path):
            Datadir(dirname=self.blk_dir,
                    blkfile_number=(datadir.blkfile_number + 1),
                    blkfile_offset=0).save()
            return file_path
        else:
            return None
Return next blk file path according to the latest Datadir or None if next blk file does not exist.
Return next blk file path according to the latest Datadir or None if next blk file does not exist.
Return next blk file path according to the latest Datadir or None if next blk file does not exist .
def _get_next_blk_file_info(self):
        datadir = self._get_or_create_datadir()
        file_name = 'blk{:05d}.dat'.format(datadir.blkfile_number + 1)
        file_path = os.path.join(datadir.dirname, file_name)
        if os.path.exists(file_path):
            Datadir(dirname=self.blk_dir,
                    blkfile_number=(datadir.blkfile_number + 1),
                    blkfile_offset=0).save()
            return file_path
        else:
            return None
def _get_next_blk_file_info ( self ) : datadir = self . _get_or_create_datadir ( ) file_name = 'blk{:05d}.dat' . format ( datadir . blkfile_number + 1 ) file_path = os . path . join ( datadir . dirname , file_name ) if os . path . exists ( file_path ) : Datadir ( dirname = self . blk_dir , blkfile_number = ( datadir . blkfile_number + 1 ) , blkfile_offset = 0 ) . save ( ) return file_path else : return None
Return next blk file path according to the latest Datadir or None if next blk file does not exist.
Return next blk file path according to the latest Datadir or None if next blk file does not exist .
"""Return next blk file path according to the latest Datadir or None if next blk file does not exist."""
self