mirror of
https://github.com/monero-project/monero.git
synced 2024-12-25 13:39:26 -05:00
blockchain: fix pedantic assert
This commit is contained in:
parent
6b824c9ed0
commit
48a0997d8c
@ -5021,6 +5021,8 @@ bool Blockchain::prepare_handle_incoming_blocks(const std::vector<block_complete
|
|||||||
unsigned nblocks = batches;
|
unsigned nblocks = batches;
|
||||||
if (i < extra)
|
if (i < extra)
|
||||||
++nblocks;
|
++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);
|
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;
|
thread_height += nblocks;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user