[debug] SERVICES -> GIT_COMMIT_HASH_MEMPOOL_SPACE in env

This commit is contained in:
nymkappa
2023-08-21 08:57:27 +02:00
parent e82b43e340
commit a1e2d2fd74
6 changed files with 25 additions and 20 deletions

View File

@@ -37,9 +37,11 @@ export class ApiService {
this.apiBasePath = network ? '/' + network : '';
});
this.getServicesBackendInfo$().subscribe(version => {
this.stateService.servicesBackendInfo$.next(version);
})
if (this.stateService.env.GIT_COMMIT_HASH_MEMPOOL_SPACE) {
this.getServicesBackendInfo$().subscribe(version => {
this.stateService.servicesBackendInfo$.next(version);
})
}
}
list2HStatistics$(): Observable<OptimizedMempoolStats[]> {

View File

@@ -49,7 +49,7 @@ export interface Env {
SIGNET_BLOCK_AUDIT_START_HEIGHT: number;
HISTORICAL_PRICE: boolean;
ACCELERATOR: boolean;
SERVICES: boolean;
GIT_COMMIT_HASH_MEMPOOL_SPACE?: string;
}
const defaultEnv: Env = {
@@ -81,7 +81,6 @@ const defaultEnv: Env = {
'SIGNET_BLOCK_AUDIT_START_HEIGHT': 0,
'HISTORICAL_PRICE': true,
'ACCELERATOR': false,
'SERVICES': false,
};
@Injectable({