From 95d6482e2f9fdea0c6bce7b8a51ea4695650e71a Mon Sep 17 00:00:00 2001 From: MoneroOcean Date: Sat, 1 Jun 2024 11:17:57 +0300 Subject: [PATCH] Revert "Separate input/output flex_hash memory" This reverts commit 2d1d781efa2bdbd2bf0a7f0e8ba44a9f08e788d0. --- src/crypto/flex/flex.cpp | 5 ++--- src/version.h | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/crypto/flex/flex.cpp b/src/crypto/flex/flex.cpp index 49b2f61a..29cf429c 100644 --- a/src/crypto/flex/flex.cpp +++ b/src/crypto/flex/flex.cpp @@ -120,7 +120,7 @@ void SwapBytes(void *pv, unsigned int n) } void flex_hash(const char* input, char* output, cryptonight_ctx** ctx) { - uint32_t hash[64/4], hash2[64/4]; + uint32_t hash[64/4]; sph_blake512_context ctx_blake; sph_bmw512_context ctx_bmw; sph_groestl512_context ctx_groestl; @@ -289,8 +289,7 @@ void flex_hash(const char* input, char* output, cryptonight_ctx** ctx) { sph_whirlpool_close(&ctx_whirlpool, hash); break; } - memcpy(hash2, hash, 64); - in = (void*) hash2; + in = (void*) hash; size = 64; } sph_keccak256_init(&ctx_keccak); diff --git a/src/version.h b/src/version.h index 78770527..10ad13a1 100644 --- a/src/version.h +++ b/src/version.h @@ -22,7 +22,7 @@ #define APP_ID "xmrig" #define APP_NAME "XMRig" #define APP_DESC "XMRig miner" -#define APP_VERSION "6.21.3-mo13" +#define APP_VERSION "6.21.3-mo12" #define APP_DOMAIN "xmrig.com" #define APP_SITE "www.xmrig.com" #define APP_COPYRIGHT "Copyright (C) 2016-2024 xmrig.com"