Skip to content

Commit

Permalink
stage 2 tests passed.
Browse files Browse the repository at this point in the history
introduce chain valid height
bump to v66
  • Loading branch information
TheTrunk committed Jul 14, 2020
1 parent 9c51def commit 01e8888
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions ZelBack/config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ module.exports = {
porttestnet: 26225,
rpcporttestnet: 26224,
},
zelcash: {
chainValidHeight: 640000,
},
zelTeamZelId: '132hG26CFTNhLM3MRsLEJhp9DpBrK6vg5N',
zelapps: {
// in zel per month
Expand Down
4 changes: 2 additions & 2 deletions ZelBack/src/services/explorerService.js
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ async function initiateBlockProcessor(restoreDatabase, deepRestore, reindexOrRes
log.error('Error restoring database!');
throw e;
}
} else if (scannedBlockHeight > 600000) {
} else if (scannedBlockHeight > config.zelcash.chainValidHeight) {
const zelcashGetChainTips = await zelcashService.getChainTips();
if (zelcashGetChainTips.status !== 'success') {
throw new Error(zelcashGetChainTips.data);
Expand Down Expand Up @@ -946,7 +946,7 @@ async function reindexExplorer(req, res) {
async function rescanExplorer(req, res) {
try {
const authorized = await serviceHelper.verifyPrivilege('zelteam', req);
if (true) {
if (authorized === true) {
// since what blockheight
let { blockheight } = req.params; // we accept both help/command and help?command=getinfo
blockheight = blockheight || req.query.blockheight;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zelflux",
"version": "0.65.4",
"version": "0.66.0",
"description": "Flux - Node Daemon. The entrace to the Flux network.",
"repository": {
"type": "git",
Expand Down

0 comments on commit 01e8888

Please sign in to comment.