Only display 0-1sat/vB on Liquid.
This commit is contained in:
@@ -8,6 +8,7 @@ import { OptimizedMempoolStats } from '../../interfaces/node-api.interface';
|
||||
import { StateService } from 'src/app/services/state.service';
|
||||
import { ApiService } from 'src/app/services/api.service';
|
||||
import { SeoService } from 'src/app/services/seo.service';
|
||||
import { environment } from 'src/environments/environment';
|
||||
|
||||
@Component({
|
||||
selector: 'app-television',
|
||||
@@ -16,6 +17,7 @@ import { SeoService } from 'src/app/services/seo.service';
|
||||
})
|
||||
export class TelevisionComponent implements OnInit {
|
||||
loading = true;
|
||||
network = environment.network;
|
||||
|
||||
mempoolStats: OptimizedMempoolStats[] = [];
|
||||
mempoolVsizeFeesData: any;
|
||||
@@ -65,7 +67,10 @@ export class TelevisionComponent implements OnInit {
|
||||
return '350+';
|
||||
}
|
||||
if (i === 0) {
|
||||
return '1 sat/vbyte';
|
||||
if (this.network === 'liquid') {
|
||||
return '0 - 1';
|
||||
}
|
||||
return '1 sat/vB';
|
||||
}
|
||||
return arr[i - 1] + ' - ' + sats;
|
||||
})
|
||||
@@ -94,6 +99,11 @@ export class TelevisionComponent implements OnInit {
|
||||
|
||||
const finalArrayVbyte = this.generateArray(mempoolStats);
|
||||
|
||||
// Only Liquid has lower than 1 sat/vb transactions
|
||||
if (this.network !== 'liquid') {
|
||||
finalArrayVbyte.shift();
|
||||
}
|
||||
|
||||
this.mempoolVsizeFeesData = {
|
||||
labels: labels,
|
||||
series: finalArrayVbyte
|
||||
|
||||
Reference in New Issue
Block a user