mirror of
https://github.com/xmrig/xmrig.git
synced 2026-02-01 09:43:03 -05:00
Restored algorithm verification.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user