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

fix validator loggin timeTillDuty as a negative number #11512

Merged
merged 3 commits into from
Sep 29, 2022

Conversation

saolyn
Copy link
Contributor

@saolyn saolyn commented Sep 29, 2022

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

If the validator is activated just after the duration of timeTillDuty, the log would display a negative number.
With this PR we add a simple check to ensure that the timeTIllDuty is only logged when it is above 0.

Which issues(s) does this PR fix?

Fixes #11383

Other notes for review

@saolyn saolyn requested a review from a team as a code owner September 29, 2022 16:59
terencechain
terencechain previously approved these changes Sep 29, 2022
Copy link
Member

@terencechain terencechain left a comment

Choose a reason for hiding this comment

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

lgtm, thank you!

validator/client/validator.go Outdated Show resolved Hide resolved
@rauljordan rauljordan added Ready For Review A pull request ready for code review OK to merge labels Sep 29, 2022
@prylabs-bulldozer prylabs-bulldozer bot merged commit 157b1e3 into develop Sep 29, 2022
@delete-merged-branch delete-merged-branch bot deleted the fix-negative-timetillduty branch September 29, 2022 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

timeTillDuty log shows a negative number
4 participants