mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-11 01:22:45 -05:00
Make single thread bench cheat-resistant
Each hash is dependent on the previous hash to make multi-threaded cheating impossible.
This commit is contained in:
@@ -35,6 +35,7 @@ namespace xmrig {
|
||||
|
||||
class VirtualMemory;
|
||||
class Job;
|
||||
class Config;
|
||||
|
||||
|
||||
class IWorker
|
||||
@@ -48,7 +49,7 @@ public:
|
||||
virtual size_t intensity() const = 0;
|
||||
virtual uint64_t rawHashes() const = 0;
|
||||
virtual void getHashrateData(uint64_t&, uint64_t&) const = 0;
|
||||
virtual void start() = 0;
|
||||
virtual void start(Config*) = 0;
|
||||
virtual void jobEarlyNotification(const Job&) = 0;
|
||||
|
||||
# ifdef XMRIG_FEATURE_BENCHMARK
|
||||
|
||||
Reference in New Issue
Block a user