only show accelerator savings msg on mainnet

This commit is contained in:
mononaut 2026-06-29 04:56:20 +00:00
parent 419fe73edf
commit f802817adc
No known key found for this signature in database
GPG key ID: BFD16BE592A9CD8D

View file

@ -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 {