Handle price API in the frontend when testnet

This commit is contained in:
softsimon
2023-08-06 15:41:57 +09:00
parent 2ceafcacc6
commit cbebbd40f1
2 changed files with 18 additions and 1 deletions

View File

@@ -339,6 +339,10 @@ export class StateService {
return this.network === 'liquid' || this.network === 'liquidtestnet';
}
isAnyTestnet(): boolean {
return ['testnet', 'signet', 'liquidtestnet'].includes(this.network);
}
resetChainTip() {
this.latestBlockHeight = -1;
this.chainTip$.next(-1);