grin/chain
Ignotus Peverell 6a9a584c43
Fix pruning of last PMMR leaf, additional tests
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.
2018-01-08 01:23:23 +00:00
..
src Fix pruning of last PMMR leaf, additional tests 2018-01-08 01:23:23 +00:00
tests Fix pruning of last PMMR leaf, additional tests 2018-01-08 01:23:23 +00:00
Cargo.toml changing secp import to tag, and consolidating Cargo.toml import (#220) 2017-10-31 23:20:55 +00:00
rustfmt.toml Initial import. 2016-10-20 20:06:12 -04:00