* Add network proportion to homepage and /vspinfo. Proportion is calculated using the number of tickets currently registered with the VSP, divided by the total size of the network ticket pool as reported by `getblockheader`. The value will only ever be an estimate because: - it's possible for a single ticket to be added to multiple VSPs. - vspd does not distinguish between immature and live tickets, whereas `getblockheader` only reports live tickets. - `getblockheader` is reporting the size of the ticket pool as of the previous block, not the current block. * xaur suggestions * Show missed ticket %, not just the raw number.
41 lines
1.2 KiB
HTML
41 lines
1.2 KiB
HTML
{{ define "vsp-stats" }}
|
|
|
|
<div class="row vsp-stats">
|
|
|
|
<div class="col-6 col-sm-4 col-lg-2 py-3">
|
|
<div class="stat-title">Live tickets</div>
|
|
<div class="stat-value">{{ .Voting }}</div>
|
|
</div>
|
|
|
|
<div class="col-6 col-sm-4 col-lg-2 py-3">
|
|
<div class="stat-title">Voted tickets</div>
|
|
<div class="stat-value">{{ .Voted }}</div>
|
|
</div>
|
|
|
|
<div class="col-6 col-sm-4 col-lg-2 py-3">
|
|
<div class="stat-title">Revoked tickets</div>
|
|
<div class="stat-value">
|
|
{{ .Revoked }}
|
|
<span class="text-muted">({{ float32ToPercent .RevokedProportion }})</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-6 col-sm-4 col-lg-2 py-3">
|
|
<div class="stat-title">VSP Fee</div>
|
|
<div class="stat-value">{{ .VSPFee }}%</div>
|
|
</div>
|
|
|
|
<div class="col-6 col-sm-4 col-lg-2 py-3">
|
|
<div class="stat-title">Network</div>
|
|
<div class="stat-value">{{ .Network }}</div>
|
|
</div>
|
|
|
|
<div class="col-6 col-sm-4 col-lg-2 py-3">
|
|
<div class="stat-title">Network Proportion</div>
|
|
<div class="stat-value">{{ float32ToPercent .NetworkProportion }}</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|