This repository was archived by the owner on Mar 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
packages/common/src/constraints Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ export const checkOnline = async (candidate: Candidate): Promise<boolean> => {
4444// Check the validate intention for a single validator
4545export const checkValidateIntention = async (
4646 config : Config . ConfigSchema ,
47- chaindata : ChainData ,
4847 candidate : Candidate ,
4948 validators : string [ ] ,
5049) : Promise < boolean > => {
You can’t perform that action at this time.
0 commit comments