chihuahua
chihuahua copied to clipboard
Restoring lost delegator funds - v5.0.4 upgrade woes
Todo: Test on testnet
This PR aims to restore delegator funds only. This does not restore validators from tombstone status. Delegators were slashed on Sept 29, 2023 Code is untested.
the records.go
file holds instructions on how I obtained the list for both validators and also calculated the losses. Currently it is 9days (I expected this to change, so this needs to change upon pushing this live) and at 22% APR.
The 'fix' to reinstate validators is outlined more here: https://github.com/ChihuahuaChain/chihuahua/pull/105 I do not possess the knowledge to properly implement and test the recommended Upgrade handler code (I just don't have experience and I imagine I could spend days attempting to learn). If anyone is willing to help, those who can have been asked and I am leaving it at that. The original way used to untombstone a validator was modifying the SDK. I am choosing to avoid that route. PR 105 will help address this if needed.
It's unfortunate this was overlooked for the current upgrade. We went to an extent to make sure those affected last time an upgrade went south and restored everything. In this I was only asking that the delegators be restored, not the validator or it's bonded tokens.
It would have been nice to have had the teams backing when being asked to change/alter the data directory. We all know the risks and if it's being required to fix the upgrade, there should be understandings and policies in place to ensure those situations are handled with the extra scope they require.
Closing because of inactivity
Closing because of inactivity
Who's the Dev now? No one even reviewed this. :/
Not trying to keep an wound open here Woof, it's been quite some time since this was submitted and it would all have to go through a governance prop that I do not think would pass at this time given how much time has passed. /shrug
I will leave this up to you and your best judgement as I am not a validator within Chihuahua any more. And at the end of the day, if those lost funds could be restored to just delegators, mission accomplished. <3