Verify & send algorithm name.

This commit is contained in:
XMRig
2018-04-26 23:27:53 +07:00
parent 2ff6765870
commit 2e3dcab65f
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