Verify & send algorithm name.

This commit is contained in:
XMRig 2018-04-26 23:27:53 +07:00
parent 2ddac1ce68
commit 85f9bd97f1
6 changed files with 109 additions and 44 deletions

View file

@ -92,6 +92,18 @@ Pool::Pool(const char *host, uint16_t port, const char *user, const char *passwo
}
bool Pool::isCompatible(const xmrig::Algorithm &algorithm) const
{
for (const auto &a : m_algorithms) {
if (algorithm == a) {
return true;
}
}
return false;
}
bool Pool::isEqual(const Pool &other) const
{
return (m_nicehash == other.m_nicehash