Merge pull request #2671 from mononaut/fix-block-summary-vsize

Fix rounded vsize in block summaries
This commit is contained in:
wiz 2022-11-21 21:29:13 +09:00 committed by GitHub
commit 90912af62d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,7 +130,7 @@ class Blocks {
const stripped = block.tx.map((tx) => {
return {
txid: tx.txid,
vsize: tx.vsize,
vsize: tx.weight / 4,
fee: tx.fee ? Math.round(tx.fee * 100000000) : 0,
value: Math.round(tx.vout.reduce((acc, vout) => acc + (vout.value ? vout.value : 0), 0) * 100000000)
};