Merge pull request #6599 from mempool/mononaut/fix-acc-savings-conditions

only show accelerator savings msg on mainnet
This commit is contained in:
wiz 2026-06-29 14:32:15 +09:00 committed by GitHub
commit bd2b0c6645
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 {