From 9c6799e1935008b0ceed789b6897425a01f535bd Mon Sep 17 00:00:00 2001 From: Mononaut Date: Fri, 4 Nov 2022 10:37:14 -0600 Subject: [PATCH] Fix rounded vsize in block summaries --- backend/src/api/blocks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/api/blocks.ts b/backend/src/api/blocks.ts index f536ce3d5..595e0a966 100644 --- a/backend/src/api/blocks.ts +++ b/backend/src/api/blocks.ts @@ -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) };