[ADDED] Peer information in Admin -> Wallet
This commit is contained in:
parent
1a26c89bc6
commit
aff3f9e57f
@ -22,6 +22,7 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$aGetInfo = $bitcoin->getinfo();
|
$aGetInfo = $bitcoin->getinfo();
|
||||||
|
$aGetPeerInfo = $bitcoin->getpeerinfo();
|
||||||
if (is_array($aGetInfo) && array_key_exists('newmint', $aGetInfo)) {
|
if (is_array($aGetInfo) && array_key_exists('newmint', $aGetInfo)) {
|
||||||
$dNewmint = $aGetInfo['newmint'];
|
$dNewmint = $aGetInfo['newmint'];
|
||||||
} else {
|
} else {
|
||||||
@ -57,6 +58,7 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
|
|||||||
$smarty->assign("LOCKED", $dLockedBalance);
|
$smarty->assign("LOCKED", $dLockedBalance);
|
||||||
$smarty->assign("NEWMINT", $dNewmint);
|
$smarty->assign("NEWMINT", $dNewmint);
|
||||||
$smarty->assign("COININFO", $aGetInfo);
|
$smarty->assign("COININFO", $aGetInfo);
|
||||||
|
$smarty->assign("PEERINFO", $aGetPeerInfo);
|
||||||
|
|
||||||
// Tempalte specifics
|
// Tempalte specifics
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -59,6 +59,7 @@
|
|||||||
<th>Wallet Version</th>
|
<th>Wallet Version</th>
|
||||||
<th>Connections</th>
|
<th>Connections</th>
|
||||||
<th>Errors</th>
|
<th>Errors</th>
|
||||||
|
<th>Blocks</th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
@ -67,6 +68,7 @@
|
|||||||
<td>{$COININFO.walletversion|default:""}</td>
|
<td>{$COININFO.walletversion|default:""}</td>
|
||||||
<td>{$COININFO.connections|default:""}</td>
|
<td>{$COININFO.connections|default:""}</td>
|
||||||
<td><font color="{if $COININFO.errors}red{else}green{/if}">{$COININFO.errors|default:"OK"}</font></td>
|
<td><font color="{if $COININFO.errors}red{else}green{/if}">{$COININFO.errors|default:"OK"}</font></td>
|
||||||
|
<td>{$COININFO.blocks|default:"0"}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@ -75,6 +77,39 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<div class="panel panel-info">
|
||||||
|
<div class="panel-heading">
|
||||||
|
<i class="fa fa-connectdevelop fa-fw"></i> Peer Information
|
||||||
|
</div>
|
||||||
|
<div class="panel-body no-padding">
|
||||||
|
<table class="table table-striped table-bordered table-hover">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Host</th>
|
||||||
|
<th>Protocol Version</th>
|
||||||
|
<th>Identity</th>
|
||||||
|
<th>Connected</th>
|
||||||
|
<th>Traffic</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{foreach key=KEY item=ARRAY from=$PEERINFO}
|
||||||
|
<tr>
|
||||||
|
<td>{$ARRAY['addr']}</td>
|
||||||
|
<td>{$ARRAY['version']}</td>
|
||||||
|
<td>{$ARRAY['subver']}</td>
|
||||||
|
<td>{$ARRAY['conntime']|date_format:$GLOBAL.config.date}</td>
|
||||||
|
<td>{(($ARRAY['bytessent'] + $ARRAY['bytesrecv']) / 1024 / 1024)|number_format:"3"} MB</td>
|
||||||
|
</tr>
|
||||||
|
{/foreach}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{if $ADDRESSCOUNT > 1}
|
{if $ADDRESSCOUNT > 1}
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user