Closed coachchucksol closed 2 months ago
Problem:
When running the interrupt, there is currently no way of knowing on-chain which validator needs to be removed. Maybe we can pass in some account that says its been removed?
We can avoid adding in extra tracking indicies by looking at the validator list from smallest marked_for_removal
to highest and check the corresponding state of the validator.
This PR will add in a service routine when a validator is removed. This functionality has been moved from epoch maintenance to its own routine to cover the case of validators being able to be removed on the same epoch if they are delinquent.