Subtracting correct block count.

This commit is contained in:
clemahieu 2018-03-07 15:37:55 -06:00
commit c15b77f11c

View file

@ -687,7 +687,7 @@ std::unique_ptr<rai::block> rai::block_store::block_random (MDB_txn * transactio
}
else
{
region -= count.change;
region -= count.open;
if (region < count.change)
{
result = block_random (transaction_a, change_blocks);