Browse Source

armor against null or empty miner config

fix-133-memory-crash
Dan Janosik 6 years ago
parent
commit
de7b6fe78e
  1. 8
      routes/baseActionsRouter.js

8
routes/baseActionsRouter.js

@ -544,9 +544,11 @@ router.get("/address/:address", function(req, res) {
} }
} }
for (var i = 0; i < global.miningPoolsConfigs.length; i++) { if (global.miningPoolsConfigs) {
if (global.miningPoolsConfigs[i].payout_addresses[address]) { for (var i = 0; i < global.miningPoolsConfigs.length; i++) {
res.locals.payoutAddressForMiner = global.miningPoolsConfigs[i].payout_addresses[address]; if (global.miningPoolsConfigs[i].payout_addresses[address]) {
res.locals.payoutAddressForMiner = global.miningPoolsConfigs[i].payout_addresses[address];
}
} }
} }

Loading…
Cancel
Save