From 45bd7d5011a83cca70e6f55ed11217a6e11ab9c7 Mon Sep 17 00:00:00 2001
From: cgeek <cem.moreau@gmail.com>
Date: Fri, 29 Sep 2017 18:49:51 +0200
Subject: [PATCH] [fix] #1126 The prefix gets mixed with core ID when we have
 10+ cores

---
 app/modules/prover/lib/proof.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/modules/prover/lib/proof.ts b/app/modules/prover/lib/proof.ts
index bfa4af967..cc60a584f 100644
--- a/app/modules/prover/lib/proof.ts
+++ b/app/modules/prover/lib/proof.ts
@@ -5,7 +5,7 @@ import {ConfDTO} from "../../../lib/dto/ConfDTO"
 import {Constants} from "./constants"
 import {KeyGen} from "../../../lib/common-libs/crypto/keyring"
 import {dos2unix} from "../../../lib/common-libs/dos2unix"
-import {rawer} from "../../../lib/common-libs/index";
+import {rawer} from "../../../lib/common-libs/index"
 
 const moment = require('moment');
 const querablep = require('querablep');
@@ -87,7 +87,7 @@ function beginNewProofOfWork(stuff:any) {
     currentCPU = conf.cpu || Constants.DEFAULT_CPU;
     prefix = parseInt(conf.prefix || prefix)
     if (prefix && prefix < Constants.NONCE_RANGE) {
-      prefix *= 10 * Constants.NONCE_RANGE
+      prefix *= 100 * Constants.NONCE_RANGE
     }
     const highMark = stuff.highMark;
     const turnDuration = stuff.turnDuration || TURN_DURATION_IN_MILLISEC
-- 
GitLab