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

only apply full rewind to bitmap, not per block #3246

Merged
merged 1 commit into from
Feb 26, 2020

Conversation

antiochp
Copy link
Member

Resolves #3245.

We still want to rewind per-block for the output_pos and MMRs themselves.
But we want to be careful and only apply a single aggregate rewind to the bitmap accumulator. This is safe to do as this is basically a "rebuild" of the bitmap, but kind of slow (so we only want to do this once).

@antiochp antiochp added this to the 3.1.0 milestone Feb 26, 2020
Copy link
Contributor

@jaspervdm jaspervdm left a comment

Choose a reason for hiding this comment

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

LGTM

@antiochp antiochp merged commit 5cb0aac into mimblewimble:master Feb 26, 2020
@antiochp antiochp deleted the rewind_utxo_bitmap branch February 26, 2020 19:15
@antiochp antiochp mentioned this pull request Feb 27, 2020
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.

rewind_single_block slow for large rewinds
2 participants