|
@ -20,90 +20,117 @@ block content |
|
|
pre |
|
|
pre |
|
|
code(class="json") #{JSON.stringify(getblockchaininfo, null, 4)} |
|
|
code(class="json") #{JSON.stringify(getblockchaininfo, null, 4)} |
|
|
|
|
|
|
|
|
if (global.client) |
|
|
ul(class='nav nav-tabs mb-3') |
|
|
div(class="card mb-3 shadow-sm") |
|
|
li(class="nav-item") |
|
|
div(class="card-header") |
|
|
a(data-toggle="tab", href="#tab-details", class="nav-link active", role="tab") Details |
|
|
span(class="h6") Summary |
|
|
li(class="nav-item") |
|
|
div(class="card-body") |
|
|
a(data-toggle="tab", href="#tab-json", class="nav-link", role="tab") JSON |
|
|
table(class="table details-table mb-0") |
|
|
|
|
|
tr |
|
|
|
|
|
td(class="properties-header") Host : Port |
|
|
div(class="tab-content") |
|
|
td(class="monospace") #{global.client.host + " : " + global.client.port} |
|
|
div(id="tab-details", class="tab-pane active", role="tabpanel") |
|
|
|
|
|
div(class="card mb-3 shadow-sm") |
|
|
tr |
|
|
div(class="card-header") |
|
|
td(class="properties-header") Chain |
|
|
span(class="h6") Summary |
|
|
td(class="monospace") #{getblockchaininfo.chain} |
|
|
div(class="card-body") |
|
|
tr |
|
|
table(class="table details-table mb-0") |
|
|
td(class="properties-header") Version |
|
|
|
|
|
td(class="monospace") #{getnetworkinfo.version} |
|
|
|
|
|
span(class="monospace") (#{getnetworkinfo.subversion}) |
|
|
|
|
|
tr |
|
|
|
|
|
td(class="properties-header") Protocol Version |
|
|
|
|
|
td(class="monospace") #{getnetworkinfo.protocolversion} |
|
|
|
|
|
|
|
|
|
|
|
if (getblockchaininfo.size_on_disk) |
|
|
|
|
|
- var sizeData = utils.formatLargeNumber(getblockchaininfo.size_on_disk, 2); |
|
|
|
|
|
tr |
|
|
tr |
|
|
td(class="properties-header") Blockchain Size |
|
|
td(class="properties-header") Host : Port |
|
|
td(class="monospace") #{sizeData[0]} #{sizeData[1].abbreviation}B |
|
|
td(class="monospace") #{global.client.host + " : " + global.client.port} |
|
|
|
|
|
|
|
|
|
|
|
tr |
|
|
|
|
|
td(class="properties-header") Chain |
|
|
|
|
|
td(class="monospace") #{getblockchaininfo.chain} |
|
|
|
|
|
tr |
|
|
|
|
|
td(class="properties-header") Version |
|
|
|
|
|
td(class="monospace") #{getnetworkinfo.version} |
|
|
|
|
|
span(class="monospace") (#{getnetworkinfo.subversion}) |
|
|
|
|
|
tr |
|
|
|
|
|
td(class="properties-header") Protocol Version |
|
|
|
|
|
td(class="monospace") #{getnetworkinfo.protocolversion} |
|
|
|
|
|
|
|
|
|
|
|
if (getblockchaininfo.size_on_disk) |
|
|
|
|
|
- var sizeData = utils.formatLargeNumber(getblockchaininfo.size_on_disk, 2); |
|
|
|
|
|
tr |
|
|
|
|
|
td(class="properties-header") Blockchain Size |
|
|
|
|
|
td(class="monospace") #{sizeData[0]} #{sizeData[1].abbreviation}B |
|
|
|
|
|
br |
|
|
|
|
|
span(class="text-muted") (pruned: #{getblockchaininfo.pruned}) |
|
|
|
|
|
tr |
|
|
|
|
|
td(class="properties-header") Connections |
|
|
|
|
|
td(class="monospace") #{getnetworkinfo.connections.toLocaleString()} |
|
|
|
|
|
|
|
|
|
|
|
tr |
|
|
|
|
|
td(class="properties-header") Block Count |
|
|
|
|
|
td(class="monospace") #{getblockchaininfo.blocks.toLocaleString()} |
|
|
br |
|
|
br |
|
|
span(class="text-muted") (pruned: #{getblockchaininfo.pruned}) |
|
|
span(class="text-muted") (headers: #{getblockchaininfo.headers.toLocaleString()}) |
|
|
tr |
|
|
tr |
|
|
td(class="properties-header") Connections |
|
|
td(class="properties-header") Difficulty |
|
|
td(class="monospace") #{getnetworkinfo.connections.toLocaleString()} |
|
|
td(class="monospace") |
|
|
|
|
|
- var difficultyData = utils.formatLargeNumber(getblockchaininfo.difficulty, 3); |
|
|
tr |
|
|
|
|
|
td(class="properties-header") Block Count |
|
|
span(title=parseFloat(getblockchaininfo.difficulty).toLocaleString(), data-toggle="tooltip") |
|
|
td(class="monospace") #{getblockchaininfo.blocks.toLocaleString()} |
|
|
span #{difficultyData[0]} |
|
|
br |
|
|
span x 10 |
|
|
span(class="text-muted") (headers: #{getblockchaininfo.headers.toLocaleString()}) |
|
|
sup #{difficultyData[1].exponent} |
|
|
tr |
|
|
|
|
|
- var scales = [ {val:1000000000000000, name:"quadrillion"}, {val:1000000000000, name:"trillion"}, {val:1000000000, name:"billion"}, {val:1000000, name:"million"} ]; |
|
|
tr |
|
|
- var scaleDone = false; |
|
|
td(class="properties-header") Status |
|
|
td(class="properties-header") Difficulty |
|
|
td(class="monospace") |
|
|
td(class="monospace") |
|
|
if (getblockchaininfo.initialblockdownload || getblockchaininfo.headers > getblockchaininfo.blocks) |
|
|
- var difficultyData = utils.formatLargeNumber(getblockchaininfo.difficulty, 3); |
|
|
span Initial block download progress #{(100 * getblockchaininfo.verificationprogress).toLocaleString()}% |
|
|
|
|
|
else |
|
|
span(title=parseFloat(getblockchaininfo.difficulty).toLocaleString(), data-toggle="tooltip") |
|
|
span Synchronized with network |
|
|
span #{difficultyData[0]} |
|
|
|
|
|
span x 10 |
|
|
tr |
|
|
sup #{difficultyData[1].exponent} |
|
|
- var startTimeAgo = moment.duration(uptimeSeconds * 1000); |
|
|
|
|
|
td(class="properties-header") Uptime |
|
|
tr |
|
|
td(class="monospace") #{startTimeAgo.format()} |
|
|
td(class="properties-header") Status |
|
|
|
|
|
td(class="monospace") |
|
|
tr |
|
|
if (getblockchaininfo.initialblockdownload || getblockchaininfo.headers > getblockchaininfo.blocks) |
|
|
td(class="properties-header") Network Traffic |
|
|
span Initial block download progress #{(100 * getblockchaininfo.verificationprogress).toLocaleString()}% |
|
|
td(class="monospace") |
|
|
else |
|
|
- var downData = utils.formatLargeNumber(getnettotals.totalbytesrecv, 2); |
|
|
span Synchronized with network |
|
|
- var downRateData = utils.formatLargeNumber(getnettotals.totalbytesrecv / uptimeSeconds, 2); |
|
|
|
|
|
- var upData = utils.formatLargeNumber(getnettotals.totalbytessent, 2); |
|
|
- var startTimeAgo = moment.duration(uptimeSeconds * 1000); |
|
|
- var upRateData = utils.formatLargeNumber(getnettotals.totalbytessent / uptimeSeconds, 2); |
|
|
tr |
|
|
|
|
|
td(class="properties-header") Uptime |
|
|
span Total Download: #{downData[0]} #{downData[1].abbreviation}B |
|
|
td(class="monospace") #{startTimeAgo.format()} |
|
|
span(class="text-muted") (avg #{downRateData[0]} #{downRateData[1].abbreviation}B/s) |
|
|
|
|
|
br |
|
|
tr |
|
|
span Total Upload: #{upData[0]} #{upData[1].abbreviation}B |
|
|
td(class="properties-header") Network Traffic |
|
|
span(class="text-muted") (avg #{upRateData[0]} #{upRateData[1].abbreviation}B/s) |
|
|
td(class="monospace") |
|
|
|
|
|
- var downData = utils.formatLargeNumber(getnettotals.totalbytesrecv, 2); |
|
|
tr |
|
|
- var downRateData = utils.formatLargeNumber(getnettotals.totalbytesrecv / uptimeSeconds, 2); |
|
|
td(class="properties-header") Warnings |
|
|
- var upData = utils.formatLargeNumber(getnettotals.totalbytessent, 2); |
|
|
td(class="monospace") |
|
|
- var upRateData = utils.formatLargeNumber(getnettotals.totalbytessent / uptimeSeconds, 2); |
|
|
if (getblockchaininfo.warnings && getblockchaininfo.warnings.trim().length > 0) |
|
|
|
|
|
span #{getblockchaininfo.warnings} |
|
|
span Total Download: #{downData[0]} #{downData[1].abbreviation}B |
|
|
else |
|
|
span(class="text-muted") (avg #{downRateData[0]} #{downRateData[1].abbreviation}B/s) |
|
|
span None |
|
|
br |
|
|
|
|
|
span Total Upload: #{upData[0]} #{upData[1].abbreviation}B |
|
|
div(id="tab-json", class="tab-pane", role="tabpanel") |
|
|
span(class="text-muted") (avg #{upRateData[0]} #{upRateData[1].abbreviation}B/s) |
|
|
|
|
|
|
|
|
ul(class='nav nav-pills mb-3') |
|
|
tr |
|
|
li(class="nav-item") |
|
|
td(class="properties-header") Warnings |
|
|
a(data-toggle="tab", href="#tab-getblockchaininfo", class="nav-link active", role="tab") getblockchaininfo |
|
|
td(class="monospace") |
|
|
li(class="nav-item") |
|
|
if (getblockchaininfo.warnings && getblockchaininfo.warnings.trim().length > 0) |
|
|
a(data-toggle="tab", href="#tab-getnettotals", class="nav-link", role="tab") getnettotals |
|
|
span #{getblockchaininfo.warnings} |
|
|
li(class="nav-item") |
|
|
else |
|
|
a(data-toggle="tab", href="#tab-getnetworkinfo", class="nav-link", role="tab") getnetworkinfo |
|
|
span None |
|
|
|
|
|
|
|
|
div(class="tab-content") |
|
|
else |
|
|
div(id="tab-getblockchaininfo", class="tab-pane active", role="tabpanel") |
|
|
div(class="alert alert-warning") No active RPC connection |
|
|
pre |
|
|
|
|
|
code(class="json", data-lang="json") #{JSON.stringify(getblockchaininfo, null, 4)} |
|
|
|
|
|
|
|
|
|
|
|
div(id="tab-getnettotals", class="tab-pane", role="tabpanel") |
|
|
|
|
|
pre |
|
|
|
|
|
code(class="json", data-lang="json") #{JSON.stringify(getnettotals, null, 4)} |
|
|
|
|
|
|
|
|
|
|
|
div(id="tab-getnetworkinfo", class="tab-pane", role="tabpanel") |
|
|
|
|
|
pre |
|
|
|
|
|
code(class="json", data-lang="json") #{JSON.stringify(getnetworkinfo, null, 4)} |
|
|
|
|
|
|
|
|
|
|
|
|