  2580→                                }
  2581→                            }
  2582→
  2583→                            uint64_t done = blocks_done.fetch_add(1) + 1;
  2584→                            if (done % 1000 == 0) {

                                }
                            }

                            uint64_t done = blocks_done.fetch_add(1) + 1;
                            if (done % 1000 == 0) {


Edit

                            uint64_t done = blocks_done.fetch_add(1) + 1;
                            if (done % 1000 == 0) {

                            uint64_t done = way_blocks_done.fetch_add(1) + 1;
                            if (done % 1000 == 0) {