Browse Source

decode OP_RETURN content to ascii

fix-133-memory-crash
Dan Janosik 8 years ago
parent
commit
59d1738464
  1. 3
      views/transaction.pug

3
views/transaction.pug

@ -269,6 +269,9 @@ block content
td td
if (vout.scriptPubKey && vout.scriptPubKey.asm) if (vout.scriptPubKey && vout.scriptPubKey.asm)
span(class="word-wrap monospace") #{vout.scriptPubKey.asm} span(class="word-wrap monospace") #{vout.scriptPubKey.asm}
if (vout.scriptPubKey.asm.startsWith("OP_RETURN"))
br
span(class="word-wrap monospace text-muted") (decoded) #{utils.hex2ascii(vout.scriptPubKey.asm)}
div(id="tab-raw", class="tab-pane", role="tabpanel") div(id="tab-raw", class="tab-pane", role="tabpanel")
div(class="highlight") div(class="highlight")

Loading…
Cancel
Save