Skip to content

Commit

Permalink
witnessedLevelMustNotRetreatUpgradeMci
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyofbyteball committed Sep 10, 2018
1 parent 0a6aa16 commit 81553a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ exports.TEXTCOIN_PRIVATE_ASSET_CLAIM_MESSAGE_FEE = 99;

exports.minCoreVersion = exports.bTestnet ? '0.2.89' : '0.2.92';

exports.witnessedLevelMustNotRetreatUpgradeMci = exports.bTestnet ? 684000 : 1400000;
exports.spendUnconfirmedUpgradeMci = exports.bTestnet ? 589000 : 2909000;
exports.branchedMinMcWlUpgradeMci = exports.bTestnet ? 593000 : 2909000;
exports.otherAddressInDefinitionUpgradeMci = exports.bTestnet ? 602000 : 2909000;
Expand Down
2 changes: 1 addition & 1 deletion validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ function validateWitnesses(conn, objUnit, objValidationState, callback){
storage.determineWitnessedLevelAndBestParent(conn, objUnit.parent_units, arrWitnesses, function(witnessed_level, best_parent_unit){
objValidationState.witnessed_level = witnessed_level;
objValidationState.best_parent_unit = best_parent_unit;
if (objValidationState.last_ball_mci < 1400000) // not enforced
if (objValidationState.last_ball_mci < constants.witnessedLevelMustNotRetreatUpgradeMci) // not enforced
return callback();
storage.readStaticUnitProps(conn, best_parent_unit, function(props){
(witnessed_level >= props.witnessed_level)
Expand Down

0 comments on commit 81553a4

Please sign in to comment.