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)!: double state transition with document same unique index #1456

Merged

Conversation

QuantumExplorer
Copy link
Member

@QuantumExplorer QuantumExplorer commented Oct 7, 2023

Issue being fixed or feature implemented

There was a report of a situation where two state transitions going for the same unique index would cause an error, we made some changes and wrote a test to make sure there wouldn't be an issue.

What was done?

There are a few changes in this PR. Many changes to make testing easier.

DPNS and Dashpay are now system contracts, meaning they are always loaded, and not just cached.

How Has This Been Tested?

Created a new strategy test.

Breaking Changes

I believe there will be some breaking changes because of some small differences in serialization of Null values, however I am not sure.

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

@QuantumExplorer QuantumExplorer marked this pull request as ready for review October 7, 2023 09:54
@QuantumExplorer QuantumExplorer changed the title fix: double state transition with document same unique index fix!: double state transition with document same unique index Oct 7, 2023
shumkov
shumkov previously approved these changes Oct 7, 2023
@QuantumExplorer QuantumExplorer changed the base branch from v0.25-dev to v1.0-dev October 7, 2023 12:53
@QuantumExplorer QuantumExplorer dismissed shumkov’s stale review October 7, 2023 12:53

The base branch was changed.

@QuantumExplorer QuantumExplorer changed the title fix!: double state transition with document same unique index fix(drive-abci)!: double state transition with document same unique index Oct 9, 2023
@QuantumExplorer
Copy link
Member Author

Dashmate tests seem broken in v1.0 for now, merging as this didn't cause errors there.

@QuantumExplorer QuantumExplorer merged commit fadfa84 into v1.0-dev Oct 9, 2023
@QuantumExplorer QuantumExplorer deleted the fix/doubleStateTransitionWithDocumentSameUniqueIndex branch October 9, 2023 08:51
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