Merge pull request #2981 from mempool/simon/audit-available-block-height-fix

Fix for disabling block audit below block height
This commit is contained in:
wiz 2023-01-27 19:43:11 +09:00 committed by GitHub
commit 93bbf61180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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