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)!: non-deterministic extended quorum info #1425

Merged
merged 2 commits into from
Sep 28, 2023

Conversation

shumkov
Copy link
Member

@shumkov shumkov commented Sep 26, 2023

Issue being fixed or feature implemented

Drive ABCI stores the extended quorum info obtained from Core via RPC. Dashcore RPC is using HashMap so the quorum extended info structured non-deterministically. In result, we might have different AppHash for the same block height.

What was done?

  • Convert extended quorum info to BTreeMap

How Has This Been Tested?

None

Breaking Changes

Drive ABCI state is changed. Previous blockchain data is incompatible

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

@shumkov shumkov changed the title fix(drive): non-deterministic extended quorum info fix(drive)!: non-deterministic extended quorum info Sep 26, 2023
Copy link
Member

@QuantumExplorer QuantumExplorer left a comment

Choose a reason for hiding this comment

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

Nice one.

markin-io
markin-io previously approved these changes Sep 27, 2023
@QuantumExplorer QuantumExplorer dismissed stale reviews from markin-io and themself via 45d3be5 September 28, 2023 06:22
@QuantumExplorer QuantumExplorer merged commit 2b522d2 into v0.25-dev Sep 28, 2023
14 checks passed
@QuantumExplorer QuantumExplorer deleted the fix/drive/non-deterministic-quorum-info branch September 28, 2023 06:48
@thephez thephez added this to the v0.25.0 milestone Oct 11, 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.

4 participants