-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat: add wait for masternode-status "ready" #659
Conversation
…onse for e2e test
Co-authored-by: lklimek <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
made modifications, please have a look at them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
answered to the comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
answered
Issue being fixed or feature implemented
In some cases Tenderdash may crash if it runs in
validator
mode and it can't get pro-tx hash by some external reason.As result, Tenderdash crashes and docker supervisor runs it again until node gets pro-tx hash
What was done?
Implement wait-for logic, that checks the
masternode status
until getREADY
. If the status isWAITING_FOR_PROTX
then waits for 1 second and retry the operation, otherwise exit.How Has This Been Tested?
The function covers with the test
Breaking Changes
N/A
Checklist:
For repository code-owners and collaborators only