Browse Source

Fix for identifying destroyed fees

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

2
views/includes/block-content.pug

@ -78,7 +78,7 @@ div(class="tab-content")
each vout in result.getblock.coinbaseTx.vout
- coinbaseTxTotalOutputValue = coinbaseTxTotalOutputValue.plus(new Decimal(vout.value));
if (coinbaseTxTotalOutputValue < blockRewardMax)
if (parseFloat(coinbaseTxTotalOutputValue) < blockRewardMax)
div(class="row")
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

2
views/transaction.pug

@ -149,7 +149,7 @@ block content
include includes/value-display.pug
- var blockRewardMax = coinConfig.blockRewardFunction(result.getblock.height);
if (totalOutputValue < blockRewardMax)
if (parseFloat(totalOutputValue) < parseFloat(blockRewardMax))
div(class="row")
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

Loading…
Cancel
Save