Skip to content
Snippets Groups Projects
Commit 6f01a449 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] #1234 Remove ARM specific code

parent 7a566dd2
No related branches found
No related tags found
2 merge requests!12291.6 into DockerBuild,!12251.6 fixes
...@@ -33,16 +33,10 @@ export class PowEngine { ...@@ -33,16 +33,10 @@ export class PowEngine {
} }
async prove(stuff:any) { async prove(stuff:any) {
if (this.cluster.hasProofPending) { if (this.cluster.hasProofPending) {
await this.cluster.cancelWork() await this.cluster.cancelWork()
} }
return await this.cluster.proveByWorkers(stuff)
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)
} }
cancel() { cancel() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment