jito-foundation / stakenet

Jito StakeNet
https://www.jito.network/stakenet/
Apache License 2.0
50 stars 19 forks source link

PATCH: Adds index mismatch interrupt #56

Closed coachchucksol closed 2 months ago

coachchucksol commented 2 months ago

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.

coachchucksol commented 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?

coachchucksol commented 2 months ago

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.