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

[CHIA-302] Handle reorgs in data layer wallet #17992

Merged
merged 6 commits into from May 15, 2024
Merged

Conversation

Quexington
Copy link
Contributor

@Quexington Quexington commented May 8, 2024

This PR started as an exploration into removing reorged mirrors from the data layer wallet DB and expanded due to the fact that nothing in the data layer DB was really being rolled back during a reorg. This isn't necessarily catastrophic because the wallet resubmits transactions to attempt to make the correct state match, but this can create periods of unpredictability. The PR adds a large test for the full lifecycle of a data layer wallet including reorgs and then handles all relevant side effects. This does result in behavior changes regarding the number and form of transactions returned, but nothing problematic I don't think.

@Quexington Quexington changed the title Handle reorgs in data layer wallet [CHIA-302] Handle reorgs in data layer wallet May 8, 2024
@Quexington Quexington added the Fixed Required label for PR that categorizes merge commit message as "Fixed" for changelog label May 8, 2024
@Quexington Quexington marked this pull request as ready for review May 9, 2024 21:52
@Quexington Quexington requested a review from a team as a code owner May 9, 2024 21:52
@Quexington Quexington added the ready_to_merge Submitter and reviewers think this is ready label May 14, 2024
@cmmarslender cmmarslender merged commit 44c6b44 into main May 15, 2024
362 checks passed
@cmmarslender cmmarslender deleted the quex.rollback_mirrors branch May 15, 2024 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DataLayer Fixed Required label for PR that categorizes merge commit message as "Fixed" for changelog ready_to_merge Submitter and reviewers think this is ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants