Skip to content

Commit

Permalink
changed from 3.3 to 3 hours description
Browse files Browse the repository at this point in the history
  • Loading branch information
Cabecinha84 committed Apr 9, 2024
1 parent b4cfd9c commit f23faf3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ZelBack/config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ module.exports = {
},
blocksLasting: 22000, // by default registered app will live for 22000 of blocks 44000 minutes ~= 1 month
minBlocksAllowance: 5000, // app can be registered for a minimum of this blocks ~ 1 week
newMinBlocksAllowance: 100, // app can be registered for a minimum of this blocks ~ 3.3 hours - to allow users to cancel application subscription
newMinBlocksAllowance: 100, // app can be registered for a minimum of this blocks ~ 3 hours - to allow users to cancel application subscription
newMinBlocksAllowanceBlock: 1630040, // block where we will start looking at new min blocks allowance. block expected on 26th of April 2024
maxBlocksAllowance: 264000, // app can be registered up for a maximum of this blocks ~ 1 year
blocksAllowanceInterval: 1000, // ap differences can be in 1000s - more than 1 day
Expand Down
2 changes: 1 addition & 1 deletion ZelBack/src/services/appsService.js
Original file line number Diff line number Diff line change
Expand Up @@ -5531,7 +5531,7 @@ function verifyRestrictionCorrectnessOfApp(appSpecifications, height) {
throw new Error(`Minimum expiration of application is ${config.fluxapps.minBlocksAllowance} blocks ~ 1 week`);
}
} else if (appSpecifications.expire < config.fluxapps.newMinBlocksAllowance) {
throw new Error(`Minimum expiration of application is ${config.fluxapps.minBlocksAllowance} blocks ~ 3.3 hours`);
throw new Error(`Minimum expiration of application is ${config.fluxapps.minBlocksAllowance} blocks ~ 3 hours`);
}
if (appSpecifications.expire > config.fluxapps.maxBlocksAllowance) {
throw new Error(`Maximum expiration of application is ${config.fluxapps.maxBlocksAllowance} blocks ~ 1 year`);
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/globalconfig/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ module.exports = {
},
blocksLasting: 22000, // by default registered app will live for 22000 of blocks 44000 minutes ~= 1 month
minBlocksAllowance: 5000, // app can be registered for a minimum of this blocks ~ 1 week
newMinBlocksAllowance: 100, // app can be registered for a minimum of this blocks ~ 3.3 hours - to allow users to cancel application subscription
newMinBlocksAllowance: 100, // app can be registered for a minimum of this blocks ~ 3 hours - to allow users to cancel application subscription
newMinBlocksAllowanceBlock: 1630040, // block where we will start looking at new min blocks allowance. block expected on 26th of April 2024
maxBlocksAllowance: 264000, // app can be registered up for a maximum of this blocks ~ 1 year
blocksAllowanceInterval: 1000, // ap differences can be in 1000s - more than 1 day
Expand Down

0 comments on commit f23faf3

Please sign in to comment.