blockchain: fix pedantic assert

pull/7975/head
selsta 3 years ago
parent 6b824c9ed0
commit 48a0997d8c
Signed by untrusted user: selsta
GPG Key ID: 2EA0A99A8B07AE5E

@ -5021,6 +5021,8 @@ bool Blockchain::prepare_handle_incoming_blocks(const std::vector<block_complete
unsigned nblocks = batches;
if (i < extra)
++nblocks;
if (nblocks == 0)
break;
tpool.submit(&waiter, boost::bind(&Blockchain::block_longhash_worker, this, thread_height, epee::span<const block>(&blocks[thread_height - height], nblocks), std::ref(maps[i])), true);
thread_height += nblocks;
}

Loading…
Cancel
Save