Skip to content

feat: add wait for masternode-status "ready"#659

Merged
shotonoff merged 8 commits intov0.12-devfrom
td-171-wait-for-abci-is-ready
Jul 21, 2023
Merged

feat: add wait for masternode-status "ready"#659
shotonoff merged 8 commits intov0.12-devfrom
td-171-wait-for-abci-is-ready

Conversation

@shotonoff
Copy link
Collaborator

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 get READY. If the status is WAITING_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:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

shotonoff and others added 2 commits July 19, 2023 09:49
Co-authored-by: lklimek <842586+lklimek@users.noreply.github.com>
@shotonoff shotonoff requested a review from lklimek July 19, 2023 07:50
Copy link
Collaborator Author

@shotonoff shotonoff left a 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

Copy link
Collaborator Author

@shotonoff shotonoff left a 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

Copy link
Collaborator Author

@shotonoff shotonoff left a comment

Choose a reason for hiding this comment

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

answered

@shotonoff shotonoff merged commit e11684a into v0.12-dev Jul 21, 2023
@shotonoff shotonoff deleted the td-171-wait-for-abci-is-ready branch July 21, 2023 08:46
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.

2 participants