blockchain: fix pedantic assert

pull/434/head
selsta 3 years ago committed by wowario
parent 7b5ab2bc16
commit ed383f2923
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111

@ -5188,6 +5188,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