diff --git a/src/crypto/common/Coin.cpp b/src/crypto/common/Coin.cpp index f5a32851a..32a1ff568 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 779d60b81..3df3784bb 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 };