Skip to content

Commit

Permalink
Restored pool setAlgo method
Browse files Browse the repository at this point in the history
  • Loading branch information
MoneroOcean committed Feb 13, 2019
1 parent 21d3264 commit e600d22
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/common/net/Pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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
{
Expand Down
1 change: 1 addition & 0 deletions src/common/net/Pool.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class Pool
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;
Expand Down

0 comments on commit e600d22

Please sign in to comment.