Dan Janosik
7 years ago
11 changed files with 88 additions and 132 deletions
@ -1,36 +0,0 @@ |
|||
if (false) |
|||
pre |
|||
code #{JSON.stringify(getinfo, null, 4)} |
|||
|
|||
if (true) |
|||
table(class="table") |
|||
tr |
|||
th(class="table-active properties-header") Version |
|||
td #{getinfo.version} |
|||
tr |
|||
th(class="table-active properties-header") Protocol Version |
|||
td #{getinfo.protocolversion} |
|||
tr |
|||
th(class="table-active properties-header") Connections |
|||
td #{getinfo.connections.toLocaleString()} |
|||
tr |
|||
th(class="table-active properties-header") Block Count |
|||
td #{getinfo.blocks.toLocaleString()} |
|||
tr |
|||
th(class="table-active properties-header") Testnet? |
|||
td #{getinfo.testnet} |
|||
tr |
|||
th(class="table-active properties-header") Errors |
|||
td #{getinfo.errors} |
|||
tr |
|||
- var scales = [ {val:1000000000000000, name:"quadrillion"}, {val:1000000000000, name:"trillion"}, {val:1000000000, name:"billion"}, {val:1000000, name:"million"} ]; |
|||
- var scaleDone = false; |
|||
th(class="table-active properties-header") Difficulty |
|||
td |
|||
span #{getinfo.difficulty.toLocaleString()} |
|||
each item in scales |
|||
if (!scaleDone) |
|||
- var fraction = Math.floor(getinfo.difficulty / item.val); |
|||
if (fraction >= 1) |
|||
- scaleDone = true; |
|||
span(class="text-muted") (#{fraction} #{item.name}) |
@ -1,39 +0,0 @@ |
|||
if (false) |
|||
pre |
|||
code #{JSON.stringify(getmempoolinfo, null, 4)} |
|||
|
|||
if (true) |
|||
table(class="table") |
|||
tr |
|||
th(class="table-active properties-header") Transaction Count |
|||
td #{getmempoolinfo.size.toLocaleString()} |
|||
tr |
|||
- var scales = [ {val:1000000000, name:"GB"}, {val:1000000, name:"MB"}, {val:1000, name:"kB"} ]; |
|||
- var scaleDone = false; |
|||
th(class="table-active properties-header") Size |
|||
td |
|||
span #{getmempoolinfo.bytes.toLocaleString()} bytes |
|||
each item in scales |
|||
if (!scaleDone) |
|||
- var fraction = Math.floor(getmempoolinfo.bytes / item.val); |
|||
if (fraction >= 1) |
|||
- scaleDone = true; |
|||
span(class="text-muted") (#{fraction} #{item.name}) |
|||
tr |
|||
- var scales = [ {val:1000000000, name:"GB"}, {val:1000000, name:"MB"}, {val:1000, name:"kB"} ]; |
|||
- var scaleDone = false; |
|||
th(class="table-active properties-header") Size |
|||
td |
|||
span #{getmempoolinfo.usage.toLocaleString()} bytes |
|||
each item in scales |
|||
if (!scaleDone) |
|||
- var fraction = Math.floor(getmempoolinfo.usage / item.val); |
|||
if (fraction >= 1) |
|||
- scaleDone = true; |
|||
span(class="text-muted") (#{fraction} #{item.name}) |
|||
tr |
|||
th(class="table-active properties-header") Max Size |
|||
td #{getmempoolinfo.maxmempool.toLocaleString()} |
|||
tr |
|||
th(class="table-active properties-header") Min Fee |
|||
td #{getmempoolinfo.mempoolminfee.toLocaleString()} |
Loading…
Reference in new issue