From f802817adc6fd0f7e1343f201bd7ccdb2afd4926 Mon Sep 17 00:00:00 2001 From: mononaut Date: Mon, 29 Jun 2026 04:56:20 +0000 Subject: [PATCH] only show accelerator savings msg on mainnet --- .../transaction-details/transaction-details.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/components/transaction/transaction-details/transaction-details.component.ts b/frontend/src/app/components/transaction/transaction-details/transaction-details.component.ts index 4b3c7806e..9a1b0e2a2 100644 --- a/frontend/src/app/components/transaction/transaction-details/transaction-details.component.ts +++ b/frontend/src/app/components/transaction/transaction-details/transaction-details.component.ts @@ -92,6 +92,10 @@ export class TransactionDetailsComponent implements OnChanges { } calculateAcceleratorSavings(block: BlockExtended): void { + if (this.network !== '') { + this.acceleratorSavingsSats = 0; + return; + } const minBlockRate = block?.extras?.feeRange?.[0]; if (minBlockRate !== undefined) { const vsize = this.tx.weight / 4; @@ -100,7 +104,7 @@ export class TransactionDetailsComponent implements OnChanges { } get showAcceleratorSavingsMsg(): boolean { - return this.acceleratorSavingsSats > 0 && this.cpfpInfo !== null && this.cpfpInfo !== undefined && !this.hasCpfp; + return this.network === '' && this.acceleratorSavingsSats > 0 && this.cpfpInfo !== null && this.cpfpInfo !== undefined && !this.hasCpfp; } onAccelerateClicked(): void {