Skip to content

Commit

Permalink
Restore missing ones
Browse files Browse the repository at this point in the history
  • Loading branch information
prasannavl committed May 27, 2022
1 parent b6e8fe8 commit dcadd9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3948,7 +3948,9 @@ static Res PoolSplits(CCustomCSView& view, CAmount& totalBalance, ATTRIBUTES& at
return true;
});

const auto nWorkers = std::thread::hardware_concurrency();
const auto workersMax = std::thread::hardware_concurrency() - 1;
- auto nWorkers = workersMax > 2 ? workersMax: 3;

LogPrintf("Pool migration: Migrating balances (count: %d, total: %d, concurrency: %d)..\n",
balancesToMigrate.size(), totalAccounts, nWorkers);

Expand Down

0 comments on commit dcadd9f

Please sign in to comment.