Commit 723ef979 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[enh] Switch to block v11 when 60% of the issuers are ready

parent 1b6265d5
......@@ -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,
......
......@@ -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
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment