From 723ef979476e745edaa184c780afdbb9ae33b8f7 Mon Sep 17 00:00:00 2001 From: cgeek <cem.moreau@gmail.com> Date: Sun, 2 Dec 2018 11:04:06 +0100 Subject: [PATCH] [enh] Switch to block v11 when 60% of the issuers are ready --- app/lib/common-libs/constants.ts | 2 +- app/lib/rules/local_rules.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/common-libs/constants.ts b/app/lib/common-libs/constants.ts index e2bd4cfb8..223c77795 100755 --- a/app/lib/common-libs/constants.ts +++ b/app/lib/common-libs/constants.ts @@ -106,7 +106,7 @@ export const CommonConstants = { }, BLOCK_GENERATED_VERSION: 10, - BLOCK_NEW_GENERATED_VERSION: 10, // Put it to 11 when ready + BLOCK_NEW_GENERATED_VERSION: 11, // Put it to 11 when ready LAST_VERSION_FOR_TX: 10, TRANSACTION_VERSION: 10, DOCUMENTS_VERSION: 10, diff --git a/app/lib/rules/local_rules.ts b/app/lib/rules/local_rules.ts index 15569c419..9080bbe0e 100644 --- a/app/lib/rules/local_rules.ts +++ b/app/lib/rules/local_rules.ts @@ -539,7 +539,7 @@ export const LOCAL_RULES_HELPERS = { const nbNoncesWithNextVersionCode = lastNonceOfEachIssuer.filter(nonce => nonce.substr(-11, 3) === '999').length // More than 70% of the computing network converted? Let's go to next version. - if (Math.floor(nbNoncesWithNextVersionCode / uniqIssuersInFrame.length) > 0.7) { + if (Math.floor(nbNoncesWithNextVersionCode / uniqIssuersInFrame.length) > 0.6) { return constants.BLOCK_NEW_GENERATED_VERSION } -- GitLab