Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -586,8 +586,10 @@ function getTxTotalInputOutputValues(tx, txInputs, blockHeight) {
}

for (var i = 0; i < tx.vout.length; i++) {
if (tx.vout[i].value) {
totalOutputValue = totalOutputValue.plus(new Decimal(tx.vout[i].value));
}
}
} catch (err) {
logError("2308sh0sg44", err, {tx:tx, txInputs:txInputs, blockHeight:blockHeight});
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"name": "btc-rpc-explorer",
"version": "3.2.0",
"description": "Open-source, self-hosted Bitcoin explorer",
Expand Down
25 changes: 13 additions & 12 deletions views/block.pug
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ block content
span 0

+contentSection("Technical Details", true, "blockPageShowTechSummary")
+summaryRow(6 + (result.getblock.weight ? 1 : 0) + (result.getblock.size ? 1 : 0) + (result.blockstats ? 1 : 0) + (result.blockstats && result.blockstats.utxo_increase ? 1 : 0) + (result.blockstats && result.blockstats.maxtxsize ? 1 : 0))
+summaryRow(5 + (result.getblock.weight ? 1 : 0) + (result.getblock.size ? 1 : 0) + (result.blockstats ? 1 : 0) + (result.blockstats && result.blockstats.utxo_increase ? 1 : 0) + (result.blockstats && result.blockstats.maxtxsize ? 1 : 0) + (result.getblock.difficulty ? 1 : 0))
if (result.getblock.weight)
+summaryItem("Weight", null, "wu", "Weight Units")
span #{result.getblock.weight.toLocaleString()}
Expand Down Expand Up @@ -194,17 +194,18 @@ block content
else
| 1

+summaryItem("Difficulty")
- var difficultyData = utils.formatLargeNumber(result.getblock.difficulty, 3);

if (result.getblock.difficulty > 1000)
span.border-dotted(title=parseFloat(result.getblock.difficulty).toLocaleString(), data-bs-toggle="tooltip")
span #{difficultyData[0]}
span x 10
sup #{difficultyData[1].exponent}

else
span #{new Decimal(result.getblock.difficulty).toDP(3)}
if (result.getblock.difficulty)
+summaryItem("Difficulty")
- var difficultyData = utils.formatLargeNumber(result.getblock.difficulty, 3);

if (result.getblock.difficulty > 1000)
span.border-dotted(title=parseFloat(result.getblock.difficulty).toLocaleString(), data-bs-toggle="tooltip")
span #{difficultyData[0]}
span x 10
sup #{difficultyData[1].exponent}

else
span #{new Decimal(result.getblock.difficulty).toDP(3)}

if (result.blockstats && result.blockstats.utxo_increase)
+summaryItem("UTXO Δ")
Expand Down
4 changes: 2 additions & 2 deletions views/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ block content



include includes/index-network-summary.pug
//include includes/index-network-summary.pug



if (true || nextBlockTemplate)
if (false && nextBlockTemplate)
if (false)
pre
code.json #{JSON.stringify(nextBlockFeeRateGroups, null, 4)}
Expand Down