Skip to content

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

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

shotonoff merged 8 commits into
v0.12-devfrom
td-171-wait-for-abci-is-ready

Conversation

@shotonoff

Copy link
Copy Markdown
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

Comment thread dash/core/client.go Resolved
Comment thread dash/core/client.go Resolved
Comment thread dash/core/client.go Resolved
@shotonoff
shotonoff requested a review from lklimek July 19, 2023 07:50

@shotonoff shotonoff left a comment

Copy link
Copy Markdown
Collaborator Author

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

@shotonoff shotonoff left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

answered to the comment

Comment thread dash/core/client.go Resolved

@shotonoff shotonoff left a comment

Copy link
Copy Markdown
Collaborator Author

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