Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var minerpage = function(req, res, next){
- var address = req.params.address || null;
- if (address !== null){
- portalStats.getBalanceByAddress(address, function(){
- processTemplates();
- res.end(indexesProcessed['miner_stats']);
- });
- }
- else
- next();
- };
- var payout = function(req, res, next){
- var address = req.params.address || null;
- if (address !== null){
- portalStats.getPayout(address, function(data){
- res.write(data.toString());
- res.end();
- });
- }
- else
- next();
- };
- var shares = function(req, res, next){
- portalStats.getCoins(function(){
- processTemplates();
- res.end(indexesProcessed['user_shares']);
- });
- };
- var usershares = function(req, res, next){
- var coin = req.params.coin || null;
- if(coin !== null){
- portalStats.getCoinTotals(coin, null, function(){
- processTemplates();
- res.end(indexesProcessed['user_shares']);
- });
- }
- else
- next();
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement