* [ADDED] Block over times stats to blocks stats page * [CHANGED] Split default block stats page template up into subtemplates * [IMPROVED] Single SQL Query for all Block Stats over Time * [UPDATED] Templates for new SQL Data
46 lines
1.3 KiB
Smarty
46 lines
1.3 KiB
Smarty
<article class="module width_full">
|
|
<header><h3>Block Shares</h3></header>
|
|
<table width="70%" class="visualize" rel="line">
|
|
<caption>Block Shares</caption>
|
|
<thead>
|
|
<tr>
|
|
{section block $BLOCKSFOUND step=-1}
|
|
<th scope="col">{$BLOCKSFOUND[block].height}</th>
|
|
{/section}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<th scope="row">Expected</th>
|
|
{section block $BLOCKSFOUND step=-1}
|
|
<td>{$BLOCKSFOUND[block].estshares}</td>
|
|
{/section}
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">Actual</th>
|
|
{section block $BLOCKSFOUND step=-1}
|
|
<td>{$BLOCKSFOUND[block].shares|default:"0"}</td>
|
|
{/section}
|
|
</tr>
|
|
{if $GLOBAL.config.payout_system == 'pplns'}<tr>
|
|
<th scope="row">PPLNS</th>
|
|
{section block $BLOCKSFOUND step=-1}
|
|
<td>{$BLOCKSFOUND[block].pplns_shares}</td>
|
|
{/section}
|
|
</tr>{/if}
|
|
{if $USEBLOCKAVERAGE}<tr>
|
|
<th scope="row">Average</th>
|
|
{section block $BLOCKSFOUND step=-1}
|
|
<td>{$BLOCKSFOUND[block].block_avg}</td>
|
|
{/section}
|
|
</tr>{/if}
|
|
</tbody>
|
|
</table>
|
|
<footer>
|
|
<p style="padding-left:30px; padding-redight:30px; font-size:10px;">
|
|
The graph above illustrates N shares to find a block vs. E Shares expected to find a block based on
|
|
target and network difficulty and assuming a zero variance scenario.
|
|
</p>
|
|
</footer>
|
|
</article>
|