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

En 6314/no unbond if still validator #1724

Merged

Conversation

sasurobert
Copy link
Contributor

Do not let unbond if node is still validator.

@raduchis raduchis self-requested a review May 12, 2020 16:24
raduchis
raduchis previously approved these changes May 12, 2020
if !r.canUnBond() {
log.Error("unBond is not possible as too many left")
if !r.canUnBond() || r.eei.IsValidator(args.Arguments[0]) {
log.Error("unBond is not possible as not enough left")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe use remaining instead of left

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

@sasurobert sasurobert changed the base branch from EN-6314/No-rating-change-in-first-epoch-after-hardfork to feat/hardFork-updates May 13, 2020 07:47
@sasurobert sasurobert dismissed raduchis’s stale review May 13, 2020 07:47

The base branch was changed.

@iulianpascalau iulianpascalau self-requested a review May 13, 2020 09:10
@sasurobert sasurobert merged commit cb8af41 into feat/hardFork-updates May 13, 2020
@sasurobert sasurobert deleted the EN-6314/No-unbond-if-still-validator branch May 13, 2020 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants