Browse Source

Fix bug in IsProbablyDuplicate()

Closes #1179
pull/145/head
Jack Grigg 8 years ago
parent
commit
30bd297920
  1. 2
      src/crypto/equihash.tcc

2
src/crypto/equihash.tcc

@ -27,7 +27,7 @@ bool IsProbablyDuplicate(std::shared_ptr<eh_trunc> indices, size_t lenIndices)
{
assert(lenIndices <= MAX_INDICES);
bool checked_index[MAX_INDICES] = {false};
bool count_checked = 0;
int count_checked = 0;
for (int z = 0; z < lenIndices; z++) {
// Skip over indices we have already paired
if (!checked_index[z]) {

Loading…
Cancel
Save