Correct line swap
Pretty clear the author wanted these two lines in other order.
This commit is contained in:
parent
27bc01a05b
commit
cc6c9ec05e
|
@ -742,8 +742,8 @@ bool Equihash<N,K>::IsValidSolution(const eh_HashState& base_state, std::vector<
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (X[i+1].IndicesBefore(X[i], hashLen, lenIndices)) {
|
if (X[i+1].IndicesBefore(X[i], hashLen, lenIndices)) {
|
||||||
return false;
|
|
||||||
LogPrint("pow", "Invalid solution: Index tree incorrectly ordered\n");
|
LogPrint("pow", "Invalid solution: Index tree incorrectly ordered\n");
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
if (!DistinctIndices(X[i], X[i+1], hashLen, lenIndices)) {
|
if (!DistinctIndices(X[i], X[i+1], hashLen, lenIndices)) {
|
||||||
LogPrint("pow", "Invalid solution: duplicate indices\n");
|
LogPrint("pow", "Invalid solution: duplicate indices\n");
|
||||||
|
|
Loading…
Reference in New Issue