Browse Source

05/26/2021 12:03:13 AM MST

master
coldstar 3 years ago
parent
commit
84d9694a5a
2 changed files with 9 additions and 3 deletions
  1. +3
    -1
      views/includes/block-content.pug
  2. +6
    -2
      views/transaction.pug

+ 3
- 1
views/includes/block-content.pug View File

@@ -147,7 +147,9 @@ div(class="tab-content")


td td
if (vout.scriptPubKey && vout.scriptPubKey.addresses) if (vout.scriptPubKey && vout.scriptPubKey.addresses)
span(class="monospace") #{vout.scriptPubKey.addresses[0]}
//span(class="monospace") #{vout.scriptPubKey.addresses[0]}
span(class="monospace")
a(href=("/address/" + vout.scriptPubKey.addresses[0]))
br br
span(class="monospace text-muted") via tx span(class="monospace text-muted") via tx
a(href=("/tx/" + txInput.txid + "#output-" + tx.vin[txInputIndex].vout), class="monospace") #{txInput.txid.substring(0, 14)}..., Output ##{tx.vin[txInputIndex].vout + 1} a(href=("/tx/" + txInput.txid + "#output-" + tx.vin[txInputIndex].vout), class="monospace") #{txInput.txid.substring(0, 14)}..., Output ##{tx.vin[txInputIndex].vout + 1}


+ 6
- 2
views/transaction.pug View File

@@ -168,7 +168,9 @@ block content


td td
if (vout.scriptPubKey && vout.scriptPubKey.addresses) if (vout.scriptPubKey && vout.scriptPubKey.addresses)
span(class="monospace") #{vout.scriptPubKey.addresses[0]}
//span(class="monospace") #{vout.scriptPubKey.addresses[0]}
span(class="monospace")
a(href=("/address/" + vout.scriptPubKey.addresses[0]))
br br
span(class="monospace text-muted") via tx span(class="monospace text-muted") via tx
a(href=("/tx/" + txInput.txid + "#output-" + result.getrawtransaction.vin[txInputIndex].vout), class="monospace") #{txInput.txid.substring(0, 14)}..., Output ##{result.getrawtransaction.vin[txInputIndex].vout + 1} a(href=("/tx/" + txInput.txid + "#output-" + result.getrawtransaction.vin[txInputIndex].vout), class="monospace") #{txInput.txid.substring(0, 14)}..., Output ##{result.getrawtransaction.vin[txInputIndex].vout + 1}
@@ -199,7 +201,9 @@ block content
if (vout.scriptPubKey) if (vout.scriptPubKey)
if (vout.scriptPubKey.addresses) if (vout.scriptPubKey.addresses)
a(id="output-" + voutIndex) a(id="output-" + voutIndex)
span(class="monospace") #{vout.scriptPubKey.addresses[0]}
//span(class="monospace") #{vout.scriptPubKey.addresses[0]}
span(class="monospace")
a(href=("/address/" + vout.scriptPubKey.addresses[0]))


else if (vout.scriptPubKey.hex && vout.scriptPubKey.hex.startsWith('6a24aa21a9ed')) else if (vout.scriptPubKey.hex && vout.scriptPubKey.hex.startsWith('6a24aa21a9ed'))
span(class="monospace") Segregated Witness committment - span(class="monospace") Segregated Witness committment -


Loading…
Cancel
Save