The problem was with column hive_stat.block_num which is used only as a last synced block number, but it was set with a last block number known by hived