#1227 Added "arqma" value for "coin" option.

This commit is contained in:
XMRig 2019-10-09 09:20:54 +07:00
parent bb7bff9115
commit ee87f73d5e
2 changed files with 11 additions and 1 deletions

View file

@ -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;

View file

@ -40,6 +40,7 @@ public:
enum Id : int {
INVALID = -1,
MONERO,
ARQMA
};