Fix rounded vsize in block summaries

This commit is contained in:
Mononaut committed 2022-11-04 10:37:14 -06:00
1 parent 057456504c
commit 9c6799e193
1 file changed
+1 -1
+1 -1
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)
};