miner: fix MAXSOLS

This commit is contained in:
jahway603
2022-09-07 01:10:53 -04:00
parent 3e75a2be22
commit b2987b43f0
2 changed files with 2 additions and 2 deletions

View File

@@ -1732,7 +1732,7 @@ void static BitcoinMiner()
ehSolverRuns.increment();
// Convert solution indices to byte array (decompress) and pass it to validBlock method.
for (size_t s = 0; s < eq.nsols; s++) {
for (size_t s = 0; s < std::min(MAXSOLS, eq.nsols); s++) {
LogPrint("pow", "Checking solution %d\n", s+1);
std::vector<eh_index> index_vector(PROOFSIZE);
for (size_t i = 0; i < PROOFSIZE; i++) {