You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.3 KiB
39 lines
1.3 KiB
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()}
|