From ee87f73d5e63974aef1e757098d4a0c286236dfa Mon Sep 17 00:00:00 2001 From: XMRig Date: Wed, 9 Oct 2019 09:20:54 +0700 Subject: [PATCH] #1227 Added "arqma" value for "coin" option. --- src/crypto/common/Coin.cpp | 11 ++++++++++- src/crypto/common/Coin.h | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/crypto/common/Coin.cpp b/src/crypto/common/Coin.cpp index f5a32851..32a1ff56 100644 --- a/src/crypto/common/Coin.cpp +++ b/src/crypto/common/Coin.cpp @@ -49,6 +49,8 @@ struct CoinName static CoinName const coin_names[] = { { "monero", Coin::MONERO }, { "xmr", Coin::MONERO }, + { "arqma", Coin::ARQMA }, + { "arq", Coin::ARQMA } }; @@ -58,8 +60,15 @@ static CoinName const coin_names[] = { xmrig::Algorithm::Id xmrig::Coin::algorithm(uint8_t blobVersion) const { - if (id() == MONERO) { + switch (id()) { + case MONERO: return (blobVersion >= 12) ? Algorithm::RX_0 : Algorithm::CN_R; + + case ARQMA: + return (blobVersion >= 15) ? Algorithm::RX_ARQ : Algorithm::CN_PICO_0; + + case INVALID: + break; } return Algorithm::INVALID; diff --git a/src/crypto/common/Coin.h b/src/crypto/common/Coin.h index 779d60b8..3df3784b 100644 --- a/src/crypto/common/Coin.h +++ b/src/crypto/common/Coin.h @@ -40,6 +40,7 @@ public: enum Id : int { INVALID = -1, MONERO, + ARQMA };