miner: fix MAXSOLS
This commit is contained in:
@@ -1732,7 +1732,7 @@ void static BitcoinMiner()
|
|||||||
ehSolverRuns.increment();
|
ehSolverRuns.increment();
|
||||||
|
|
||||||
// Convert solution indices to byte array (decompress) and pass it to validBlock method.
|
// 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);
|
LogPrint("pow", "Checking solution %d\n", s+1);
|
||||||
std::vector<eh_index> index_vector(PROOFSIZE);
|
std::vector<eh_index> index_vector(PROOFSIZE);
|
||||||
for (size_t i = 0; i < PROOFSIZE; i++) {
|
for (size_t i = 0; i < PROOFSIZE; i++) {
|
||||||
|
|||||||
@@ -225,7 +225,7 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity)
|
|||||||
|
|
||||||
// Convert solution indices to byte array (decompress) and pass it to validBlock method.
|
// Convert solution indices to byte array (decompress) and pass it to validBlock method.
|
||||||
std::set<std::vector<unsigned char>> solns;
|
std::set<std::vector<unsigned char>> solns;
|
||||||
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);
|
LogPrint("pow", "Checking solution %d\n", s+1);
|
||||||
std::vector<eh_index> index_vector(PROOFSIZE);
|
std::vector<eh_index> index_vector(PROOFSIZE);
|
||||||
for (size_t i = 0; i < PROOFSIZE; i++) {
|
for (size_t i = 0; i < PROOFSIZE; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user