Restored algorithm verification.
This commit is contained in:
parent
88edde804f
commit
691b2fabbf
13 changed files with 56 additions and 23 deletions
|
@ -157,6 +157,12 @@ bool xmrig::Miner::isEnabled() const
|
|||
}
|
||||
|
||||
|
||||
bool xmrig::Miner::isEnabled(const Algorithm &algorithm) const
|
||||
{
|
||||
return std::find(d_ptr->algorithms.begin(), d_ptr->algorithms.end(), algorithm) != d_ptr->algorithms.end();
|
||||
}
|
||||
|
||||
|
||||
const xmrig::Algorithms &xmrig::Miner::algorithms() const
|
||||
{
|
||||
return d_ptr->algorithms;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue