mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-11 17:32:47 -05:00
Restored pool setAlgo method
This commit is contained in:
@@ -51,7 +51,7 @@ Pool::Pool() :
|
|||||||
m_keepAlive(0),
|
m_keepAlive(0),
|
||||||
m_port(kDefaultPort)
|
m_port(kDefaultPort)
|
||||||
{
|
{
|
||||||
// here xmrig now resuts all possible supported algorithms
|
// here xmrig now reports all possible supported algorithms
|
||||||
m_algorithms.push_back(xmrig::Algorithm(xmrig::CRYPTONIGHT, xmrig::VARIANT_1));
|
m_algorithms.push_back(xmrig::Algorithm(xmrig::CRYPTONIGHT, xmrig::VARIANT_1));
|
||||||
m_algorithms.push_back(xmrig::Algorithm(xmrig::CRYPTONIGHT, xmrig::VARIANT_2));
|
m_algorithms.push_back(xmrig::Algorithm(xmrig::CRYPTONIGHT, xmrig::VARIANT_2));
|
||||||
m_algorithms.push_back(xmrig::Algorithm(xmrig::CRYPTONIGHT, xmrig::VARIANT_0));
|
m_algorithms.push_back(xmrig::Algorithm(xmrig::CRYPTONIGHT, xmrig::VARIANT_0));
|
||||||
@@ -276,6 +276,13 @@ void Pool::adjust(const xmrig::Algorithm &algorithm)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Pool::setAlgo(const xmrig::Algorithm &algorithm)
|
||||||
|
{
|
||||||
|
m_algorithm = algorithm;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef APP_DEBUG
|
#ifdef APP_DEBUG
|
||||||
void Pool::print() const
|
void Pool::print() const
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ public:
|
|||||||
bool setUserpass(const char *userpass);
|
bool setUserpass(const char *userpass);
|
||||||
rapidjson::Value toJSON(rapidjson::Document &doc) const;
|
rapidjson::Value toJSON(rapidjson::Document &doc) const;
|
||||||
void adjust(const xmrig::Algorithm &algorithm);
|
void adjust(const xmrig::Algorithm &algorithm);
|
||||||
|
void setAlgo(const xmrig::Algorithm &algorithm);
|
||||||
|
|
||||||
# ifdef APP_DEBUG
|
# ifdef APP_DEBUG
|
||||||
void print() const;
|
void print() const;
|
||||||
|
|||||||
Reference in New Issue
Block a user