mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
6ba22e71c8
The MMR storage has a buffer for all changes so they can either be discarded without side effects or committed to disk. Pruning can also happen in the buffer if an input directly spends an output in a block (not likely), or a fork has an input spending a previous output within it. When the buffer gets flushed to storage, the pruned element was just skipped, causing an offset within the underlying storage and a shorter file than expected. This fix writes zeroes instead, so the size is consistent. Note that the zeroes will be removed with all other pruned elements on next compaction. Fixes #444 |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml | ||
rustfmt.toml |