Skip to content

fix(consensus): PrepareProposal should not be called during replay#678

Merged
lklimek merged 1 commit intov0.13-devfrom
fix-prepareproposal-during-replay
Sep 13, 2023
Merged

fix(consensus): PrepareProposal should not be called during replay#678
lklimek merged 1 commit intov0.13-devfrom
fix-prepareproposal-during-replay

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
@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