Restrict public acceleration APIs to mainnet

This commit is contained in:
Mononaut committed 2024-04-02 08:23:38 +00:00
1 parent 37aee77eb4
commit b32cce1440
2 files changed
+2 -2

No files matched your search

@@ -484,7 +484,7 @@ export class BlockComponent implements OnInit, OnDestroy {
});
this.oobSubscription = block$.pipe(
filter(() => this.stateService.env.PUBLIC_ACCELERATIONS === true),
filter(() => this.stateService.env.PUBLIC_ACCELERATIONS === true && this.stateService.network === ''),
switchMap((block) => this.apiService.getAccelerationsByHeight$(block.height)
.pipe(
map(accelerations => {