| 35 | } |
| 36 | |
| 37 | void PrintSolutions(std::stringstream &strm, std::set<std::vector<uint32_t>> solns) { |
| 38 | strm << "{"; |
| 39 | const char* soln_separator = ""; |
| 40 | for (std::vector<uint32_t> soln : solns) { |
| 41 | strm << soln_separator << "\n"; |
| 42 | soln_separator = ","; |
| 43 | PrintSolution(strm, soln); |
| 44 | } |
| 45 | strm << "\n}"; |
| 46 | } |
| 47 | |
| 48 | void TestEquihashSolvers(unsigned int n, unsigned int k, const std::string &I, const arith_uint256 &nonce, const std::set<std::vector<uint32_t>> &solns) { |
| 49 | size_t cBitLen { n/(k+1) }; |
no test coverage detected