Browse Source

minor ux/consistency improvement for fees destroyed

fix-133-memory-crash
Dan Janosik 6 years ago
parent
commit
e6549b80de
No known key found for this signature in database GPG Key ID: C6F8CE9FFDB2CED2
  1. 8
      views/includes/block-content.pug
  2. 8
      views/transaction.pug

8
views/includes/block-content.pug

@ -80,14 +80,12 @@ div(class="tab-content")
if (coinbaseTxTotalOutputValue < blockRewardMax)
div(class="row")
div(class="summary-split-table-label") Fees Destroyed
div(class="summary-split-table-content monospace text-warning")
div(class="summary-split-table-label")
span.border-dotted(data-toggle="tooltip" title="The miner of this block failed to collect this value. As a result, it is lost.") Fees Destroyed
div(class="summary-split-table-content monospace text-danger")
- var currencyValue = new Decimal(blockRewardMax).minus(coinbaseTxTotalOutputValue);
include ./value-display.pug
a(class="ml-2", data-toggle="tooltip", title="The miner of this block failed to collect this value. As a result, it is lost.")
i(class="fas fa-info-circle")
if (result.getblock.weight)
div(class="row")
div(class="summary-split-table-label") Weight

8
views/transaction.pug

@ -151,14 +151,12 @@ block content
- var blockRewardMax = coinConfig.blockRewardFunction(result.getblock.height);
if (totalOutputValue < blockRewardMax)
div(class="row")
div(class="summary-table-label") Fees Destroyed
div(class="summary-table-content monospace")
div(class="summary-table-label")
span.border-dotted(data-toggle="tooltip" title="The miner of this transaction's block failed to collect this value. As a result, it is lost.") Fees Destroyed
div(class="summary-table-content monospace text-danger")
- var currencyValue = new Decimal(blockRewardMax).minus(totalOutputValue);
include includes/value-display.pug
a(class="ml-2", data-toggle="tooltip", title="The miner of this transaction's block failed to collect this value. As a result, it is lost.")
i(class="fas fa-info-circle")
if (minerInfo)
- var minerInfo = utils.getMinerFromCoinbaseTx(result.getrawtransaction);
div(class="row")

Loading…
Cancel
Save