From 046b2a17d3b32ad278cc7c7df51a071ccf374b6a Mon Sep 17 00:00:00 2001 From: Matthew Vogel Date: Thu, 1 Aug 2024 00:01:09 -0700 Subject: [PATCH] finish updating for yadacoin --- src/base/crypto/Algorithm.h | 1 + src/base/crypto/Coin.h | 2 +- src/crypto/randomx/randomx.cpp | 1 + src/crypto/randomx/randomx.h | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/base/crypto/Algorithm.h b/src/base/crypto/Algorithm.h index 2b3b2348..53276068 100644 --- a/src/base/crypto/Algorithm.h +++ b/src/base/crypto/Algorithm.h @@ -143,6 +143,7 @@ public: static const char *kRX_ARQ; static const char *kRX_GRAFT; static const char *kRX_SFX; + static const char *kRX_YADA; # endif # ifdef XMRIG_ALGO_ARGON2 diff --git a/src/base/crypto/Coin.h b/src/base/crypto/Coin.h index cb28613f..c3c97fda 100644 --- a/src/base/crypto/Coin.h +++ b/src/base/crypto/Coin.h @@ -40,8 +40,8 @@ public: WOWNERO, ZEPHYR, TOWNFORGE, - MAX, YADA, + MAX }; static const char *kDisabled; diff --git a/src/crypto/randomx/randomx.cpp b/src/crypto/randomx/randomx.cpp index adfec8a9..1126c7a2 100644 --- a/src/crypto/randomx/randomx.cpp +++ b/src/crypto/randomx/randomx.cpp @@ -111,6 +111,7 @@ RandomX_ConfigurationBase::RandomX_ConfigurationBase() : ArgonIterations(3) , ArgonLanes(1) , ArgonSalt("RandomX\x03") + , SuperscalarLatency(170) , ScratchpadL1_Size(16384) , ScratchpadL2_Size(262144) , ScratchpadL3_Size(2097152) diff --git a/src/crypto/randomx/randomx.h b/src/crypto/randomx/randomx.h index 6e7875a9..30e47368 100644 --- a/src/crypto/randomx/randomx.h +++ b/src/crypto/randomx/randomx.h @@ -69,7 +69,6 @@ struct RandomX_ConfigurationBase { ArgonMemory = 262144, CacheAccesses = 8, - SuperscalarLatency = 170, DatasetBaseSize = 2147483648, DatasetExtraSize = 33554368, JumpBits = 8, @@ -82,6 +81,7 @@ struct RandomX_ConfigurationBase uint32_t ArgonIterations; uint32_t ArgonLanes; const char* ArgonSalt; + uint32_t SuperscalarLatency; uint32_t ScratchpadL1_Size; uint32_t ScratchpadL2_Size;