Sync changes with proxy.

This commit is contained in:
XMRig 2018-04-29 14:24:44 +07:00
parent be232fa1f2
commit 2b0309e159
4 changed files with 46 additions and 1 deletions

View file

@ -49,6 +49,11 @@ public:
setAlgo(algo);
}
inline Algorithm(const char *algo)
{
parseAlgorithm(algo);
}
bool isEqual(const Algorithm &other) const { return m_algo == other.m_algo && m_variant == other.m_variant; }
inline Algo algo() const { return m_algo; }
inline const char *name() const { return name(false); }
@ -66,6 +71,10 @@ public:
void parseVariant(int variant);
void setAlgo(Algo algo);
# ifdef XMRIG_PROXY_PROJECT
void parseXmrStakAlgorithm(const char *algo);
# endif
private:
const char *name(bool shortName) const;