From 6f01a44935ffaa5f5d699051cc7007b07ff44098 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20Moreau?= <cem.moreau@gmail.com>
Date: Sun, 17 Dec 2017 16:53:32 +0100
Subject: [PATCH] [fix] #1234 Remove ARM specific code

---
 app/modules/prover/lib/engine.ts | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/app/modules/prover/lib/engine.ts b/app/modules/prover/lib/engine.ts
index 30585270a..2537c5921 100644
--- a/app/modules/prover/lib/engine.ts
+++ b/app/modules/prover/lib/engine.ts
@@ -33,16 +33,10 @@ export class PowEngine {
   }
 
   async prove(stuff:any) {
-        if (this.cluster.hasProofPending) {
-          await this.cluster.cancelWork()
-        }
-    
-        const cpus = os.cpus()
-    
-        if (os.arch().match(/arm/) || cpus[0].model.match(/Atom/)) {
-          stuff.newPoW.conf.nbCores /= 2; // Make sure that only once each physical core is used (for Hyperthreading).
-        }
-        return await this.cluster.proveByWorkers(stuff)
+    if (this.cluster.hasProofPending) {
+      await this.cluster.cancelWork()
+    }
+    return await this.cluster.proveByWorkers(stuff)
   }
 
   cancel() {
-- 
GitLab