UNPKG

cryptocurrency-pool-server

Version:

An extremely efficient, highly scalable, all-in-one, easy to setup cryptocurrency pool server

44 lines (43 loc) 2.38 kB
<div id="statsPage"> <div id="topCharts"> <div class="chartWrapper card"> <div class="chartLabel">Crypto Pool Statistics</div> <div class="chartHolder"> <table> <thead> <tr> <th>Pool</th> <th>Algorithm</th> <th>Workers</th> <th>Valid Shares</th> <th>Invalid Shares</th> <th>Total Blocks</th> <th>Pending</th> <th>Confirmed</th> <th>Orphaned</th> <th>PPS Hashrate</th> <th>Solo Hashrate</th> </tr> </thead> <tbody> {{ for (var i = 0, poolNames = Object.keys(it.stats.pools).sort(); i < poolNames.length; i++) { var pool = poolNames[i]; }} <tr class="odd"> <td><amp-img src="{{=it.poolsConfigs[pool].logo}}" width="{{=it.poolsConfigs[pool].logoWidth}}" height="{{=it.poolsConfigs[pool].logoHeight}}" layout="fixed"></amp-img> {{=it.stats.pools[pool].name.replace(/(^([a-zA-Z\p{M}]))|([ -][a-zA-Z\p{M}])/g,function(s){return s.toUpperCase()})}}</td> <td>{{=it.stats.pools[pool].algorithm}}</td> <td>{{=Object.keys(it.stats.pools[pool].workers).length}}</td> <td>{{=it.stats.pools[pool].poolStats.validShares}}</td> <td>{{=it.stats.pools[pool].poolStats.invalidShares}}</td> <td>{{=it.stats.pools[pool].poolStats.validBlocks}}</td> <td>{{=it.stats.pools[pool].blocks.pending}}</td> <td>{{=it.stats.pools[pool].blocks.confirmed}}</td> <td>{{=it.stats.pools[pool].blocks.orphaned}}</td> <td>{{=it.stats.pools[pool].hashrateString}}</td> <td>{{=it.stats.pools[pool].solohashrateString}}</td> </tr> {{ } }} </tbody> </table> </div> </div> </div> </div>