Browse Source

Add missing assert

pull/145/head
Jack Grigg 8 years ago
parent
commit
3c3ef34505
  1. 1
      src/crypto/equihash.cpp

1
src/crypto/equihash.cpp

@ -306,6 +306,7 @@ bool Equihash<N,K>::BasicSolve(const eh_HashState& base_state,
template<size_t MAX_INDICES>
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;
for (int z = 0; z < lenIndices; z++) {

Loading…
Cancel
Save