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(consensus): PrepareProposal should not be called during replay #678

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

lklimek
Copy link
Collaborator

@lklimek lklimek commented Sep 12, 2023

Issue being fixed or feature implemented

When replaying WAL on proposer, Tenderdash calls RequestPrepareProposal and creates new proposal, to drop it soon and use the one from replay process.

This can affect multiple mechanisms, including block locking.

What was done?

Skip creating proposal in replay mode.

How Has This Been Tested?

Unit tests, e2e tests passed

Breaking Changes

None

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

@lklimek lklimek merged commit 920f346 into v0.13-dev Sep 13, 2023
15 checks passed
@lklimek lklimek deleted the fix-prepareproposal-during-replay branch September 13, 2023 08:34
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