decred / dcrwallet

A secure Decred wallet daemon written in Go (golang).
https://decred.org
ISC License
216 stars 155 forks source link

wallet: Prune chain instead of rooted tree #2309

Closed matheusd closed 10 months ago

matheusd commented 10 months ago

This modifies the pruning procedure of the sidechain forest to prune not just entire trees, but instead to prune partial chains from trees.

This enables the ability to maintain headers in the forest for which its ancestor chain has been included in the wallet's main chain, while the successor chain has not yet been fully processed (for example, due to missing cfilters).

While this does not make a functional difference at the moment, in the future this will allow the SPV syncer to process chains asynchronously.