Closed antiochp closed 2 years ago
Closed and marked as 'abandoned'. This does not mean the PR is unworthy. This means that merging it would require further work that nobody appears prepared to do at this time, or the original author has been unresponsive for a significant amount of time. Anyone who want to continue work on this functionality is free to re-open this at any time.
Deprecate the (P)MMR data file (and size file) and store (leaf) data in the database. This PR reworks the PMMR backend data strcutures to only store the hash file on disk. Everything else is pushed into the db (indexed by MMR pos).
Very much still an experimental WIP.
Outputs, rangeproofs and kernels -
pos -> output
commitment -> pos
commitment -> pos -> output
Headers -
hash -> header
height -> hash
height -> hash -> header
TODO
prune_list
we can sequentially read leaf data for all unpruned leaf postxhashset.zip
txhashset.zip
is cached every 720 blocks so we can take advantage of this to mitigate extra cost hereTXHASHSET_HIST
capabilities)