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(drive-abci): cached protocol versions #1516

Merged
merged 5 commits into from
Oct 20, 2023
Merged

Conversation

QuantumExplorer
Copy link
Member

Issue being fixed or feature implemented

We were having an issue of non determinism when the round was > 0. This was because there was a version cache that wasn't being properly reset between rounds.

What was done?

Created a block cache for protocol versions that is merged into main cache on block commit.

How Has This Been Tested?

The existing strategy tests all pass. Creating a comprehensive strategy test with multiple rounds and multiple nodes should be done, but it is not a simple task, so we should merge this in asap first.

Breaking Changes

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 added "!" to the title and described breaking changes in the corresponding section if my code contains any
  • I have made corresponding changes to the documentation if needed

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

Copy link
Member

@shumkov shumkov left a comment

Choose a reason for hiding this comment

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

👍

@shumkov shumkov merged commit 4960955 into master Oct 20, 2023
@shumkov shumkov deleted the fix/cachedProtocolVersions branch October 20, 2023 04:49
pshenmic added a commit that referenced this pull request Oct 23, 2023
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