Commit 6f01a449 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] #1234 Remove ARM specific code

parent 7a566dd2
......@@ -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() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment