File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed
contracts/validator/contract Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -340,17 +340,18 @@ contract XDCValidator {
340
340
candidateCount = candidateCount.sub (1 );
341
341
allMasternodes[count++ ] = candidates[i];
342
342
343
- //delete voters[candidates[i]];
344
- for (uint256 y = 0 ; y < voters[candidates[i]].length ; y++ ) {
345
- //delete mapping
346
- validatorsState[candidates[i]].voters[
347
- voters[candidates[i]][y]
348
- ] = 0 ;
349
- voters[candidates[i]][y] = address (0 );
350
- }
351
- voters[candidates[i]] = removeZeroAddresses (
352
- voters[candidates[i]]
353
- );
343
+ //delete voters[candidates[i]]; in blacklist no need use in the future
344
+ // for (uint256 y = 0; y < voters[candidates[i]].length; y++) {
345
+ // //delete mapping
346
+ // validatorsState[candidates[i]].voters[
347
+ // voters[candidates[i]][y]
348
+ // ] = 0;
349
+ // voters[candidates[i]][y] = address(0);
350
+ // }
351
+ // voters[candidates[i]] = removeZeroAddresses(
352
+ // voters[candidates[i]]
353
+ // );
354
+
354
355
delete validatorsState[candidates[i]];
355
356
356
357
delete KYCString[_owner];
You can’t perform that action at this time.
0 commit comments