mirror of
https://github.com/mempool/mempool.git
synced 2026-08-13 12:33:11 +02:00
only show accelerator savings msg on mainnet
This commit is contained in:
parent
419fe73edf
commit
f802817adc
1 changed files with 5 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue