Skip to content

Commit

Permalink
Update burst-pool.js
Browse files Browse the repository at this point in the history
  • Loading branch information
SOELexicon authored Feb 12, 2017
1 parent b1e8628 commit 52837e8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions burst-pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ function onNonceSubmitedRes(req,res){
{
minerPic = '<img src="http://storage.googleapis.com/ix_choosemuse/uploads/2016/02/android-logo.png" alt="'+req.minerData.xMiner+' " style="width:20px;height:20px;">'
}
else if(req.minerData.xMiner.startsWith('burstcoin-jminer'))
else if(req.minerData.xMiner.toString().startsWith('burstcoin-jminer'))
{
minerPic = '<img src="Jminer.png" alt="'+req.minerData.xMiner+' " style="width:20px;height:20px;">'
}
Expand Down Expand Up @@ -207,6 +207,10 @@ function onNonceSubmitedRes(req,res){
{
minerPic = '<img src="Jminer.png" alt="'+req.minerData.xMiner+' " style="width:20px;height:20px;">'
}
else if(req.minerData.xMiner.startsWith('creepsky'))
{
minerPic = '<img src="cat_tied.png" alt="'+req.minerData.xMiner+' " style="width:20px;height:20px;">'
}
//poolProtocol.clientLog("new best deadline : #"+poolSession.getCurrentBlockHeight());
poolProtocol.clientLogFormatted('<span class="logLine time">'+getDateTime()+'</span>'+minerPic+'<span class="logLine"> Best deadline = </span><span class="logLine deadline">'+moment.duration(req.minerData.deadline*1000).humanize(false)+'</span><span class="logLine"> by Burst ID: </span><span class="logLine accountName"><a href="https://block.burstcoin.info/acc.php?acc='+req.minerData.accountId+'" target=_blank>'+req.minerData.accountId+'</a></span>');

Expand Down Expand Up @@ -307,4 +311,4 @@ function exitHandler(options, err) {

process.on('exit', exitHandler.bind(null,{cleanup:true}));
process.on('SIGINT', exitHandler.bind(null, {exit:true}));
process.on('uncaughtException', exitHandler.bind(null, {exit:true}));
process.on('uncaughtException', exitHandler.bind(null, {exit:true}));

0 comments on commit 52837e8

Please sign in to comment.