Update api.js

This commit is contained in:
Procrastinator 2017-03-26 21:46:47 -04:00 committed by GitHub
parent e735705845
commit 90b8d0fe33
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ module.exports = function(logger, portalConfig, poolConfigs){
var workers = {};
var address = url_parms[1] || null;
//res.end(portalStats.getWorkerStats(address));
if (address != null && address.length > 0 && address.startsWith('t')) {
if (address != null && address.length > 0 && address.startsWith('t'),('R')) {
// make sure it is just the miners address
address = address.split(".")[0];
// get miners balance along with worker balances
@ -116,4 +116,4 @@ module.exports = function(logger, portalConfig, poolConfigs){
}
};
};
};