From f88527bff81b25ef56917366a555b2a5fa8641db Mon Sep 17 00:00:00 2001 From: Mononaut Date: Sat, 12 Jul 2025 03:58:09 +0000 Subject: [PATCH] handle sub-1-sat-vb in audits --- backend/src/api/audit.ts | 2 +- frontend/src/app/components/block/block.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/api/audit.ts b/backend/src/api/audit.ts index e09234cdc..7b90c516e 100644 --- a/backend/src/api/audit.ts +++ b/backend/src/api/audit.ts @@ -55,7 +55,7 @@ class Audit { } else if (mempool[txid]?.lastBoosted != null && (now - (mempool[txid]?.lastBoosted || 0)) <= PROPAGATION_MARGIN) { // tx was recently cpfp'd, miner may not have the latest effective rate fresh.push(txid); - } else { + } else if (mempool[txid].effectiveFeePerVsize >= 1) { // transactions paying < 1 sat/vbyte are never considered censored isCensored[txid] = true; } displacedWeight += mempool[txid]?.weight || 0; diff --git a/frontend/src/app/components/block/block.component.ts b/frontend/src/app/components/block/block.component.ts index ddcf023ed..779739ddc 100644 --- a/frontend/src/app/components/block/block.component.ts +++ b/frontend/src/app/components/block/block.component.ts @@ -600,7 +600,7 @@ export class BlockComponent implements OnInit, OnDestroy { // set transaction statuses for (const tx of blockAudit.template) { tx.context = 'projected'; - if (isCensored[tx.txid]) { + if (isCensored[tx.txid] && tx.rate >= 1) { tx.status = 'censored'; } else if (inBlock[tx.txid]) { tx.status = 'found';