Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting lost coins from inactive validators #172

Closed
SurfingNerd opened this issue May 21, 2023 · 0 comments
Closed

getting lost coins from inactive validators #172

SurfingNerd opened this issue May 21, 2023 · 0 comments
Labels
in test staging: issue most likely fixed and currently in test.
Milestone

Comments

@SurfingNerd
Copy link
Collaborator

SurfingNerd commented May 21, 2023

See whitepaper: 5.5 Reinsert pot:
... when validators are inactive for 10 years...

we need to set the validatorLastSuccess mapping to the current timestamp when the validator became available.
it is currently not used, and we can rename this variable to validatorAvailableSinceLastWrite, or suggest a better name.

it should resemble when the last "available since" was written, but never turns 0 again.

to figure out if a validator was available or not since 10 years we have to check if 10 years have passed since the last write of availability, or if the validator was available since 10 years.

Implement as public available function that move all coins (those from validator candidates and those that have delegated coins on it.

https://bit.diamonds/wp-content/uploads/DMD_wp.pdf

because of time manipulation within the contracts: #175

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in test staging: issue most likely fixed and currently in test.
Projects
No open projects
Status: Done
Development

No branches or pull requests

1 participant