1
0
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:
SChernykh
2020-11-15 20:38:27 +01:00
parent 0d3c2752c9
commit c10ec90b60
11 changed files with 43 additions and 15 deletions

View File

@@ -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