Add missing frontend audit flag for testnet4

This commit is contained in:
natsoni 2024-10-30 15:19:46 +01:00
parent c0ef01d4da
commit f08fa034cc
No known key found for this signature in database
GPG Key ID: C65917583181743B
2 changed files with 7 additions and 0 deletions

View File

@ -922,6 +922,11 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
return false; return false;
} }
break; break;
case 'testnet4':
if (blockHeight < this.stateService.env.TESTNET4_BLOCK_AUDIT_START_HEIGHT) {
return false;
}
break;
case 'signet': case 'signet':
if (blockHeight < this.stateService.env.SIGNET_BLOCK_AUDIT_START_HEIGHT) { if (blockHeight < this.stateService.env.SIGNET_BLOCK_AUDIT_START_HEIGHT) {
return false; return false;

View File

@ -68,6 +68,7 @@ export interface Env {
AUDIT: boolean; AUDIT: boolean;
MAINNET_BLOCK_AUDIT_START_HEIGHT: number; MAINNET_BLOCK_AUDIT_START_HEIGHT: number;
TESTNET_BLOCK_AUDIT_START_HEIGHT: number; TESTNET_BLOCK_AUDIT_START_HEIGHT: number;
TESTNET4_BLOCK_AUDIT_START_HEIGHT: number;
SIGNET_BLOCK_AUDIT_START_HEIGHT: number; SIGNET_BLOCK_AUDIT_START_HEIGHT: number;
HISTORICAL_PRICE: boolean; HISTORICAL_PRICE: boolean;
ACCELERATOR: boolean; ACCELERATOR: boolean;
@ -107,6 +108,7 @@ const defaultEnv: Env = {
'AUDIT': false, 'AUDIT': false,
'MAINNET_BLOCK_AUDIT_START_HEIGHT': 0, 'MAINNET_BLOCK_AUDIT_START_HEIGHT': 0,
'TESTNET_BLOCK_AUDIT_START_HEIGHT': 0, 'TESTNET_BLOCK_AUDIT_START_HEIGHT': 0,
'TESTNET4_BLOCK_AUDIT_START_HEIGHT': 0,
'SIGNET_BLOCK_AUDIT_START_HEIGHT': 0, 'SIGNET_BLOCK_AUDIT_START_HEIGHT': 0,
'HISTORICAL_PRICE': true, 'HISTORICAL_PRICE': true,
'ACCELERATOR': false, 'ACCELERATOR': false,