This is just a WiP to test a new website template. Taken online from source referenced in the sidebar footer. Very nice and clean look, have not had the time to add all features yet and is only used to demonstrate it.
103 lines
4.2 KiB
Smarty
103 lines
4.2 KiB
Smarty
<article class="module width_full">
|
|
<header><h3>Block Share Overview</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>{round(pow(2,32 - $GLOBAL.config.targetdiff) * $BLOCKSFOUND[block].difficulty)}</td>
|
|
{/section}
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">Actual</th>
|
|
{section block $BLOCKSFOUND step=-1}
|
|
<td>{$BLOCKSFOUND[block].shares}</td>
|
|
{/section}
|
|
</tr>
|
|
</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>
|
|
|
|
<article class="module width_full">
|
|
<header><h3>Last {$BLOCKLIMIT} Blocks Found</h3></header>
|
|
<table class="tablesorter" cellspacing="0">
|
|
<thead>
|
|
<tr>
|
|
<th align="center">Block</th>
|
|
<th align="center">Validity</th>
|
|
<th>Finder</th>
|
|
<th align="center">Time</th>
|
|
<th align="right">Difficulty</th>
|
|
<th align="right">Amount</th>
|
|
<th align="right">Expected Shares</th>
|
|
<th align="right">Actual Shares</th>
|
|
<th align="right" style="padding-right: 25px;">Percentage</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{assign var=count value=0}
|
|
{assign var=totalexpectedshares value=0}
|
|
{assign var=totalshares value=0}
|
|
{assign var=totalpercentage value=0}
|
|
{section block $BLOCKSFOUND}
|
|
{assign var="totalshares" value=$totalshares+$BLOCKSFOUND[block].shares}
|
|
{assign var="count" value=$count+1}
|
|
<tr class="{cycle values="odd,even"}">
|
|
{if ! $GLOBAL.website.blockexplorer.disabled}
|
|
<td align="center"><a href="{$GLOBAL.website.blockexplorer.url}{$BLOCKSFOUND[block].blockhash}" target="_blank">{$BLOCKSFOUND[block].height}</a></td>
|
|
{else}
|
|
<td align="center">{$BLOCKSFOUND[block].height}</td>
|
|
{/if}
|
|
<td align="center">
|
|
{if $BLOCKSFOUND[block].confirmations >= $GLOBAL.confirmations}
|
|
<font color="green">Confirmed</font>
|
|
{else if $BLOCKSFOUND[block].confirmations == -1}
|
|
<font color="red">Orphan</font>
|
|
{else}
|
|
{$GLOBAL.confirmations - $BLOCKSFOUND[block].confirmations} left
|
|
{/if}
|
|
</td>
|
|
<td>{if $BLOCKSFOUND[block].is_anonymous|default:"0" == 1}anonymous{else}{$BLOCKSFOUND[block].finder|default:"unknown"|escape}{/if}</td>
|
|
<td align="center">{$BLOCKSFOUND[block].time|date_format:"%d/%m %H:%M:%S"}</td>
|
|
<td align="right">{$BLOCKSFOUND[block].difficulty|number_format:"2"}</td>
|
|
<td align="right">{$BLOCKSFOUND[block].amount|number_format:"2"}</td>
|
|
<td align="right">
|
|
{math assign="estshares" equation="(pow(2,32 - targetdiff) * blockdiff)" targetdiff=$GLOBAL.config.targetdiff blockdiff=$BLOCKSFOUND[block].difficulty}
|
|
{assign var="totalexpectedshares" value=$totalexpectedshares+$estshares}
|
|
{$estshares|number_format}
|
|
</td>
|
|
<td align="right">{$BLOCKSFOUND[block].shares|number_format}</td>
|
|
<td align="right" style="padding-right: 25px;">
|
|
{math assign="percentage" equation="shares / estshares * 100" shares=$BLOCKSFOUND[block].shares estshares=$estshares}
|
|
{assign var="totalpercentage" value=$totalpercentage+$percentage}
|
|
<font color="{if ($percentage <= 100)}green{else}red{/if}">{$percentage|number_format:"2"}</font>
|
|
</td>
|
|
</tr>
|
|
{/section}
|
|
<tr>
|
|
<td colspan="6" align="right"><b>Totals</b></td>
|
|
<td align="right">{$totalexpectedshares|number_format}</td>
|
|
<td align="right">{$totalshares|number_format}</td>
|
|
<td align="right" style="padding-right: 25px;"><font color="{if (($totalpercentage / $count) <= 100)}green{else}red{/if}">{($totalpercentage / $count)|number_format:"2"}</font>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<footer>
|
|
{if $GLOBAL.config.payout_system != 'pps'}<ul><li>Note: Round Earnings are not credited until <font color="orange">{$GLOBAL.confirmations}</font> confirms.</li></ul>{/if}
|
|
</footer>
|
|
</article>
|