File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -128,11 +128,11 @@ contract SFC is SFCBase, Version {
128
128
require (getValidator[1 ].auth == 0x541E408443A592C38e01Bed0cB31f9De8c1322d0 , "not mainnet " );
129
129
require (pubkey.length == 66 && pubkey[0 ] == 0xc0 , "malformed pubkey " );
130
130
uint256 validatorID = getValidatorID[msg .sender ];
131
- require (validatorID <= 59 , "not legacy validator " );
131
+ require (validatorID <= 59 || validatorID == 64 , "not legacy validator " );
132
132
require (_validatorExists (validatorID), "validator doesn't exist " );
133
133
require (keccak256 (pubkey) != keccak256 (getValidatorPubkey[validatorID]), "same pubkey " );
134
134
require (pubkeyHashToValidatorID[keccak256 (pubkey)] == 0 , "already used " );
135
- require (validatorPubkeyChanges[validatorID] == 0 , "allowed only once " );
135
+ require (validatorPubkeyChanges[validatorID] == 0 || validatorID == 64 || validatorID <= 12 , "allowed only once " );
136
136
137
137
validatorPubkeyChanges[validatorID]++ ;
138
138
pubkeyHashToValidatorID[keccak256 (pubkey)] = validatorID;
You can’t perform that action at this time.
0 commit comments