Subtracting correct block count.
This commit is contained in:
parent
75da89b3c9
commit
c15b77f11c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue