mimblewimble / grin

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

MW scaling: full pruning #404

Closed ignopeverell closed 6 years ago

ignopeverell commented 6 years ago

Current node model is one of a full archival node. To realize the scaling benefits of a MimbleWimble type chain we need 2 additional features:

This issue is for the former.

Currently until MMR sumtree data is pruned to account for outputs spending, however all block data remains. As outputs are spent, we can also get rid of all related data, like commitments and most importantly range proofs.

antiochp commented 6 years ago

The .grin/chain is actually growing pretty quickly (did not realize it was growing this fast) -

du -h .
4.0K    ./plugins/plugins
528K    ./plugins
224K    ./.grin/peers
538M    ./.grin/chain
2.2M    ./.grin/sumtrees/kernel
31M ./.grin/sumtrees/rangeproof
33M ./.grin/sumtrees/utxo
66M ./.grin/sumtrees
604M    ./.grin
624M    .
ignopeverell commented 6 years ago

Yup. Liking them large rangeproofs? :-)