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:
@@ -481,7 +481,7 @@ void xmrig::CudaBackend::start(IWorker *worker, bool ready)
|
||||
mutex.unlock();
|
||||
|
||||
if (ready) {
|
||||
worker->start();
|
||||
worker->start(d_ptr->controller->config());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -145,7 +145,7 @@ size_t xmrig::CudaWorker::intensity() const
|
||||
}
|
||||
|
||||
|
||||
void xmrig::CudaWorker::start()
|
||||
void xmrig::CudaWorker::start(xmrig::Config*)
|
||||
{
|
||||
while (Nonce::sequence(Nonce::CUDA) > 0) {
|
||||
if (!isReady()) {
|
||||
|
||||
@@ -39,6 +39,7 @@ namespace xmrig {
|
||||
|
||||
|
||||
class ICudaRunner;
|
||||
class Config;
|
||||
|
||||
|
||||
class CudaWorker : public Worker
|
||||
@@ -58,7 +59,7 @@ public:
|
||||
protected:
|
||||
bool selfTest() override;
|
||||
size_t intensity() const override;
|
||||
void start() override;
|
||||
void start(Config*) override;
|
||||
|
||||
private:
|
||||
bool consumeJob();
|
||||
|
||||
Reference in New Issue
Block a user