You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pg.cur1_execute("select epoch from blocks order by block desc limit 1")
row=pg.cur1_fetchone()
current_epoch=row['epoch']
# scan all previous epoch pools and make sure there is an entry set in their pool blocks table for 0 blocks.
pg.cur1_execute("select pool_id from (select pools.pool_id, block_count from pools left join pool_epoch_blocks on pool_epoch_blocks.pool_id=pools.pool_id and pool_epoch_blocks.epoch=%s) as a where block_count is null",[current_epoch-1])