Idea is outlined here: #12651
This allows to enable the txindex when pruning is enabled.
During pruning a block file, the CDiskTxPos
objects in the txindex do get migrated to a “per-blockheight” approach allowing to get the blockhash and tx-position of every txid.
Once #10794 (requestblocks
, or similar) is merged, getrawtransaction
could wait until the block is fetched via the connected peers and return the transaction. Retrieving a transaction would still be fast enough for non-high-load usage (less then a second to a couple of seconds).
This would allow to run a txindex with ~20GB of diskspace for non high-load usage like personal block explorers.
ToDo:
- Tests
- Release-Notes