Fix for disabling block audit below block height

This commit is contained in:
softsimon 2023-01-27 14:18:50 +04:00
parent dd3d047aa8
commit 2c2003af5a
No known key found for this signature in database
GPG key ID: 488D7DCFB5A430D7

View file

@ -616,17 +616,17 @@ export class BlockComponent implements OnInit, OnDestroy {
switch (this.stateService.network) { switch (this.stateService.network) {
case 'testnet': case 'testnet':
if (blockHeight < this.stateService.env.TESTNET_BLOCK_AUDIT_START_HEIGHT) { if (blockHeight < this.stateService.env.TESTNET_BLOCK_AUDIT_START_HEIGHT) {
this.setAuditAvailable(true); this.setAuditAvailable(false);
} }
break; 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) {
this.setAuditAvailable(true); this.setAuditAvailable(false);
} }
break; break;
default: default:
if (blockHeight < this.stateService.env.MAINNET_BLOCK_AUDIT_START_HEIGHT) { if (blockHeight < this.stateService.env.MAINNET_BLOCK_AUDIT_START_HEIGHT) {
this.setAuditAvailable(true); this.setAuditAvailable(false);
} }
} }
} }