Skip to content

Commit a0f4cf4

Browse files
committed
Update XDCValidatorV2.sol
1 parent 2d586d8 commit a0f4cf4

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

contracts/validator/contract/XDCValidatorV2.sol

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -340,17 +340,18 @@ contract XDCValidator {
340340
candidateCount = candidateCount.sub(1);
341341
allMasternodes[count++] = candidates[i];
342342

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+
354355
delete validatorsState[candidates[i]];
355356

356357
delete KYCString[_owner];

0 commit comments

Comments
 (0)