Skip to content

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

Merged
antiochp merged 1 commit into
mimblewimble:masterfrom
antiochp:rewind_utxo_bitmap
Feb 26, 2020
Merged

only apply full rewind to bitmap, not per block#3246
antiochp merged 1 commit into
mimblewimble:masterfrom
antiochp:rewind_utxo_bitmap

Conversation

@antiochp
Copy link
Copy Markdown
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
Copy Markdown
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