From 2db5a1f7bdb5ced9c3a1316b099300e7d4419c00 Mon Sep 17 00:00:00 2001 From: cgeek <cem.moreau@gmail.com> Date: Fri, 29 Sep 2017 18:50:09 +0200 Subject: [PATCH] [fix] #1126 Set the maximum prefix value to 899 --- app/modules/prover/lib/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/prover/lib/constants.ts b/app/modules/prover/lib/constants.ts index 5de1c0e72..0602e7de8 100644 --- a/app/modules/prover/lib/constants.ts +++ b/app/modules/prover/lib/constants.ts @@ -8,7 +8,7 @@ export const Constants = { DEFAULT_CPU: 0.6, DEFAULT_PEER_ID: 1, MIN_PEER_ID: 1, - MAX_PEER_ID: 999999, + MAX_PEER_ID: 899, // Due to MAX_SAFE_INTEGER = 9007199254740991 (16 digits, and we use 11 digits for the nonce + 2 digits for core number => 3 digits for the peer, must be below 900) NONCE_RANGE: 1000 * 1000 * 1000 * 100, -- GitLab