Skip to content

Commit

Permalink
Update init.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ROZ-MOFUMOFU-ME authored Dec 15, 2024
1 parent b620189 commit dbf56c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions init.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ var algos = require('stratum-pool/lib/algoProperties.js');

JSON.minify = JSON.minify || require("node-json-minify");

if (!fs.existsSync('config.json')) {
console.log('config.json file does not exist. Read the installation/setup instructions.');
process.exit(0);
}

var portalConfig = JSON.parse(JSON.minify(fs.readFileSync("config.json", { encoding: 'utf8' })));
var poolConfigs;
Expand Down

0 comments on commit dbf56c0

Please sign in to comment.