|
|
@ -1,15 +1,17 @@ |
|
|
|
ul(class='nav nav-tabs mb-3') |
|
|
|
li(class="nav-item") |
|
|
|
a(data-toggle="tab", href="#tab-summary", class="nav-link active", role="tab") Summary |
|
|
|
a(data-toggle="tab", href="#tab-details", class="nav-link active", role="tab") Details |
|
|
|
li(class="nav-item") |
|
|
|
a(data-toggle="tab", href="#tab-raw", class="nav-link", role="tab") Raw |
|
|
|
|
|
|
|
- var txCount = result.getblock.tx.length; |
|
|
|
|
|
|
|
div(class="tab-content") |
|
|
|
div(id="tab-summary", class="tab-pane active", role="tabpanel") |
|
|
|
div(id="tab-details", class="tab-pane active", role="tabpanel") |
|
|
|
if (global.specialBlocks && global.specialBlocks[result.getblock.hash]) |
|
|
|
div(class="alert alert-primary", style="padding-bottom: 0;") |
|
|
|
div(class="float-left", style="width: 50px; height: 50px; font-size: 18px;") |
|
|
|
i(class="fas fa-certificate fa-2x", style="margin-top: 10px;") |
|
|
|
h4(class="alert-heading h5") #{coinConfig.name} Fun |
|
|
|
|
|
|
|
// special transaction info |
|
|
@ -30,12 +32,15 @@ div(class="tab-content") |
|
|
|
span |
|
|
|
a(href=sbInfo.referenceUrl) Read more |
|
|
|
|
|
|
|
|
|
|
|
div(class="card mb-3") |
|
|
|
div(class="card-header") |
|
|
|
span(class="h6") Summary |
|
|
|
div(class="card-body") |
|
|
|
div(class="row") |
|
|
|
div(class="col-md-6") |
|
|
|
table(class="table") |
|
|
|
table(class="table details-table mb-0") |
|
|
|
tr |
|
|
|
th(class="table-active properties-header") Previous Block |
|
|
|
td(class="properties-header") Previous Block |
|
|
|
td(class="monospace word-wrap") |
|
|
|
if (result.getblock.previousblockhash) |
|
|
|
a(class="word-wrap", href=("/block/" + result.getblock.previousblockhash)) #{result.getblock.previousblockhash} |
|
|
@ -49,12 +54,12 @@ div(class="tab-content") |
|
|
|
|
|
|
|
if (false) |
|
|
|
tr |
|
|
|
th(class="table-active properties-header") Block Height |
|
|
|
td(class="properties-header") Block Height |
|
|
|
td(class="monospace") |
|
|
|
a(href=("/block-height/" + result.getblock.height)) #{result.getblock.height.toLocaleString()} |
|
|
|
|
|
|
|
tr |
|
|
|
th(class="table-active properties-header") Timestamp (utc) |
|
|
|
td(class="properties-header") Timestamp (utc) |
|
|
|
|
|
|
|
- var timeAgo = moment.duration(moment.utc(new Date()).diff(moment.utc(new Date(parseInt(result.getblock.time) * 1000)))); |
|
|
|
td(class="monospace") #{moment.utc(new Date(result.getblock.time * 1000)).format("Y-MM-DD HH:mm:ss")} |
|
|
@ -62,36 +67,36 @@ div(class="tab-content") |
|
|
|
span(class="text-muted") (age #{timeAgo.format()}) |
|
|
|
|
|
|
|
tr |
|
|
|
th(class="table-active properties-header") Transaction Count |
|
|
|
td(class="properties-header") Transaction Count |
|
|
|
td(class="monospace") #{result.getblock.tx.length.toLocaleString()} |
|
|
|
|
|
|
|
tr |
|
|
|
th(class="table-active properties-header") Total Fees |
|
|
|
td(class="properties-header") Total Fees |
|
|
|
td(class="monospace") |
|
|
|
- var currencyValue = new Decimal(result.getblock.totalFees); |
|
|
|
include ./value-display.pug |
|
|
|
|
|
|
|
tr |
|
|
|
th(class="table-active properties-header") Average Fee |
|
|
|
td(class="properties-header") Average Fee |
|
|
|
td(class="monospace") |
|
|
|
- var currencyValue = new Decimal(result.getblock.totalFees).dividedBy(result.getblock.tx.length); |
|
|
|
include ./value-display.pug |
|
|
|
|
|
|
|
tr |
|
|
|
th(class="table-active properties-header") Size |
|
|
|
td(class="properties-header") Size |
|
|
|
td(class="monospace") |
|
|
|
span #{result.getblock.size.toLocaleString()} bytes |
|
|
|
|
|
|
|
if (result.getblock.weight) |
|
|
|
tr |
|
|
|
th(class="table-active properties-header") Weight |
|
|
|
td(class="properties-header") Weight |
|
|
|
td(class="monospace") |
|
|
|
span #{result.getblock.weight.toLocaleString()} wu |
|
|
|
br |
|
|
|
span(class="text-muted") (#{new Decimal(100 * result.getblock.weight / coinConfig.maxBlockWeight).toDecimalPlaces(2)}% full) |
|
|
|
|
|
|
|
tr(class="border-bottom") |
|
|
|
th(class="table-active properties-header") Confirmations |
|
|
|
tr |
|
|
|
td(class="properties-header") Confirmations |
|
|
|
td(class="monospace") |
|
|
|
if (result.getblock.confirmations < 6) |
|
|
|
strong(class="text-warning") #{result.getblock.confirmations} |
|
|
@ -100,9 +105,9 @@ div(class="tab-content") |
|
|
|
|
|
|
|
|
|
|
|
div(class="col-md-6") |
|
|
|
table(class="table") |
|
|
|
table(class="table details-table mb-0") |
|
|
|
tr |
|
|
|
th(class="table-active properties-header") Next Block |
|
|
|
td(class="properties-header") Next Block |
|
|
|
td(class="monospace word-wrap") |
|
|
|
if (result.getblock.nextblockhash) |
|
|
|
a(href=("/block/" + result.getblock.nextblockhash)) #{result.getblock.nextblockhash} |
|
|
@ -116,7 +121,7 @@ div(class="tab-content") |
|
|
|
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(class="properties-header") Difficulty |
|
|
|
td(class="monospace") |
|
|
|
- var difficultyData = utils.formatLargeNumber(result.getblock.difficulty, 3); |
|
|
|
|
|
|
@ -127,24 +132,24 @@ div(class="tab-content") |
|
|
|
|
|
|
|
|
|
|
|
tr |
|
|
|
th(class="table-active text-right") Version |
|
|
|
td(class="properties-header") Version |
|
|
|
td(class="monospace") 0x#{result.getblock.versionHex} |
|
|
|
span(class="text-muted") (decimal: #{result.getblock.version}) |
|
|
|
|
|
|
|
tr |
|
|
|
th(class="table-active text-right") Nonce |
|
|
|
td(class="properties-header") Nonce |
|
|
|
td(class="monospace") #{result.getblock.nonce} |
|
|
|
|
|
|
|
tr |
|
|
|
th(class="table-active text-right") Bits |
|
|
|
td(class="properties-header") Bits |
|
|
|
td(class="monospace") #{result.getblock.bits} |
|
|
|
|
|
|
|
tr |
|
|
|
th(class="table-active text-right") Merkle Root |
|
|
|
td(class="properties-header") Merkle Root |
|
|
|
td(class="monospace word-wrap") #{result.getblock.merkleroot} |
|
|
|
|
|
|
|
tr |
|
|
|
th(class="table-active text-right") Chainwork |
|
|
|
td(class="properties-header") Chainwork |
|
|
|
td(class="monospace word-wrap") #{result.getblock.chainwork.replace(/^0+/, '')} |
|
|
|
br |
|
|
|
- var chainworkData = utils.formatLargeNumber(parseInt("0x" + result.getblock.chainwork), 2); |
|
|
@ -155,8 +160,8 @@ div(class="tab-content") |
|
|
|
sup #{chainworkData[1].exponent} |
|
|
|
span hashes) |
|
|
|
|
|
|
|
tr(class="border-bottom") |
|
|
|
th(class="table-active text-right") Miner |
|
|
|
tr |
|
|
|
td(class="properties-header") Miner |
|
|
|
td(class="monospace word-wrap") |
|
|
|
if (result.getblock.miner) |
|
|
|
span #{result.getblock.miner.name} |
|
|
|