Skip to content

Commit

Permalink
Fixed some mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
Teredic committed May 7, 2020
1 parent 6e6f64a commit ae88d27
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/backend/cpu/CpuWorker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ void xmrig::CpuWorker<N>::start()
}

defyx2_calculate_hash_next(m_vm, tempHash, m_job.blob(), job.size(), m_hash);
} else {
} else {
if (first) {
first = false;
randomx_calculate_hash_first(m_vm, tempHash, m_job.blob(), job.size());
Expand All @@ -283,8 +283,8 @@ void xmrig::CpuWorker<N>::start()

randomx_calculate_hash_next(m_vm, tempHash, m_job.blob(), job.size(), m_hash);
}
}
else
}
} else
# endif
{
# ifdef XMRIG_ALGO_ASTROBWT
Expand Down
6 changes: 6 additions & 0 deletions src/crypto/randomx/randomx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include <cassert>

extern "C" {
#include "defyx/yescrypt.h"
#include "panthera/yespower.h"
#include "panthera/KangarooTwelve.h"
}

RandomX_ConfigurationWownero::RandomX_ConfigurationWownero()
{
ArgonSalt = "RandomWOW\x01";
Expand Down

0 comments on commit ae88d27

Please sign in to comment.