Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
typescript
duniter
Commits
45bd7d50
Commit
45bd7d50
authored
7 years ago
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
[fix]
#1126
The prefix gets mixed with core ID when we have 10+ cores
parent
d595e742
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/modules/prover/lib/proof.ts
+2
-2
2 additions, 2 deletions
app/modules/prover/lib/proof.ts
with
2 additions
and
2 deletions
app/modules/prover/lib/proof.ts
+
2
−
2
View file @
45bd7d50
...
@@ -5,7 +5,7 @@ import {ConfDTO} from "../../../lib/dto/ConfDTO"
...
@@ -5,7 +5,7 @@ import {ConfDTO} from "../../../lib/dto/ConfDTO"
import
{
Constants
}
from
"
./constants
"
import
{
Constants
}
from
"
./constants
"
import
{
KeyGen
}
from
"
../../../lib/common-libs/crypto/keyring
"
import
{
KeyGen
}
from
"
../../../lib/common-libs/crypto/keyring
"
import
{
dos2unix
}
from
"
../../../lib/common-libs/dos2unix
"
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
moment
=
require
(
'
moment
'
);
const
querablep
=
require
(
'
querablep
'
);
const
querablep
=
require
(
'
querablep
'
);
...
@@ -87,7 +87,7 @@ function beginNewProofOfWork(stuff:any) {
...
@@ -87,7 +87,7 @@ function beginNewProofOfWork(stuff:any) {
currentCPU
=
conf
.
cpu
||
Constants
.
DEFAULT_CPU
;
currentCPU
=
conf
.
cpu
||
Constants
.
DEFAULT_CPU
;
prefix
=
parseInt
(
conf
.
prefix
||
prefix
)
prefix
=
parseInt
(
conf
.
prefix
||
prefix
)
if
(
prefix
&&
prefix
<
Constants
.
NONCE_RANGE
)
{
if
(
prefix
&&
prefix
<
Constants
.
NONCE_RANGE
)
{
prefix
*=
10
*
Constants
.
NONCE_RANGE
prefix
*=
10
0
*
Constants
.
NONCE_RANGE
}
}
const
highMark
=
stuff
.
highMark
;
const
highMark
=
stuff
.
highMark
;
const
turnDuration
=
stuff
.
turnDuration
||
TURN_DURATION_IN_MILLISEC
const
turnDuration
=
stuff
.
turnDuration
||
TURN_DURATION_IN_MILLISEC
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment