MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / PrintSolutions

Function PrintSolutions

src/test/equihash_tests.cpp:37–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void 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
48void 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) };

Callers 1

TestEquihashSolversFunction · 0.85

Calls 1

PrintSolutionFunction · 0.85

Tested by

no test coverage detected