Restored pool setAlgo method
This commit is contained in:
parent
21d32645bf
commit
e600d22cc6
2 changed files with 9 additions and 1 deletions
|
@ -51,7 +51,7 @@ Pool::Pool() :
|
|||
m_keepAlive(0),
|
||||
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_2));
|
||||
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
|
||||
void Pool::print() const
|
||||
{
|
||||
|
|
|
@ -85,6 +85,7 @@ public:
|
|||
bool setUserpass(const char *userpass);
|
||||
rapidjson::Value toJSON(rapidjson::Document &doc) const;
|
||||
void adjust(const xmrig::Algorithm &algorithm);
|
||||
void setAlgo(const xmrig::Algorithm &algorithm);
|
||||
|
||||
# ifdef APP_DEBUG
|
||||
void print() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue