Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 6c808f6

Browse files
committed
implement skipIdentity flag
1 parent 1a90976 commit 6c808f6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/common/src/constraints/CheckCandidates.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export const checkCandidate = async (
3434

3535
const validateValid = await checkValidateIntention(
3636
constraints.config,
37-
constraints.chaindata,
3837
candidate,
3938
validators,
4039
);
@@ -64,7 +63,10 @@ export const checkCandidate = async (
6463
);
6564
}
6665

67-
const identityValid = await checkIdentity(constraints.chaindata, candidate);
66+
const identityValid =
67+
constraints.config?.constraints?.skipIdentity == true
68+
? true
69+
: (await checkIdentity(constraints.chaindata, candidate)) || false;
6870
if (!identityValid) {
6971
logger.info(`${candidate.name} identity not valid`, constraintsLabel);
7072
}

packages/common/src/constraints/ValidityChecks.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ export const checkOnline = async (candidate: Candidate): Promise<boolean> => {
4444
// Check the validate intention for a single validator
4545
export const checkValidateIntention = async (
4646
config: Config.ConfigSchema,
47-
chaindata: ChainData,
4847
candidate: Candidate,
4948
validators: string[],
5049
): Promise<boolean> => {

0 commit comments

Comments
 (0)