mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 17:01:09 +03:00
6a9a584c43
Due to the construction of PMMRs the last element, when its a leaf, can never be pruned as it has no parent yet and it will be needed to calculate that hash. To work around this, we now insert coinbase outputs first to add at least one output of padding. Also changed the `set_sumtree_root` function on chain a bit to allow setting the roots on a fork. Mostly useful for tests. Added new test case to handle both the issue above and spending transactions within a fork. |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml | ||
rustfmt.toml |