mimblewimble / grin

Minimal implementation of the Mimblewimble protocol.
https://grin.mw/
Apache License 2.0
5.04k stars 989 forks source link

[PIBD] PMMR Desegmenter Structure (Pt. 1) #3667

Closed yeastplume closed 2 years ago

yeastplume commented 2 years ago

This is the first part of several anticipated PRs to enable and test the reconstruction of the txhashset from PMMR segments. Note that none of the code introduced here is called from anywhere but the main test test_pibd_copy. Merging this a bit earlier than I'd planned, but breaking up the work like this keeps the review process a bit more manageable, and the included test is needed to help track down a potential serious performance issue in header sync 😄

Included in this PR:

Note the current copy tests do work, however they haven't been tested or verified against actual pruned data.

yeastplume commented 2 years ago

Thank you, will address bits before merging this. It's perhaps a bit early for review and there are still a lot of things here that are going to change, but I'd just like to get everything I have to date merged before continuing with this.

yeastplume commented 2 years ago

Addressed a few issues, will keep the rest in consideration during future work