core.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:sbds 作者: steemit 项目源码 文件源码
def highest_block(cls, session):
        """
        Return integer result of MAX(block_num) db query.

        This does not have the same meaning as last irreversible block, ie, it
        makes no claim that the all blocks lower than the MAX(block_num) exist
        in the database.

        Args:
            session (sqlalchemy.orm.session.Session):

        Returns:
            int:
        """
        highest = session.query(func.max(cls.block_num)).scalar()
        if not highest:
            return 0
        else:
            return highest
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号