Once a whitelisted candidate is unwhitelisted & unregistered it's impossible to whitelist & re-register them again, the only way to get them back into the candidate list is to allow the DPOS contract to deduct the 1.25M LOOM registration requirement.
Reproduction steps:
loom dpos3 whitelist-candidate A
loom dpos3 register-candidate A
- Wait a couple of election cycles.
loom dpos3 remove-whitelisted-candidate A
loom dpos3 unregister-candidate A
- Wait a couple of election cycles.
- Now try re-registering A:
loom dpos3 whitelist-candidate A - nope, Cannot whitelist an already whitelisted candidate.
loom dpos3 change-whitelist-info A - no error, but doesn't actually do anything since this only works on registered candidates.
loom dpos3 register-candidate A - attempts to transfer 1.25M LOOM to DPOS contract since the whitelist amount is still zero.
Once a whitelisted candidate is unwhitelisted & unregistered it's impossible to whitelist & re-register them again, the only way to get them back into the candidate list is to allow the DPOS contract to deduct the 1.25M LOOM registration requirement.
Reproduction steps:
loom dpos3 whitelist-candidate Aloom dpos3 register-candidate Aloom dpos3 remove-whitelisted-candidate Aloom dpos3 unregister-candidate Aloom dpos3 whitelist-candidate A- nope,Cannot whitelist an already whitelisted candidate.loom dpos3 change-whitelist-info A- no error, but doesn't actually do anything since this only works on registered candidates.loom dpos3 register-candidate A- attempts to transfer 1.25M LOOM to DPOS contract since the whitelist amount is still zero.