Usecase: running a pruned peer on low resource hardware while still not want to completely loose the potential to grab any transaction by it’s txid.
Idea:
Instead of storing the CDiskBlockPos
in the WriteTxIndex
, it could store the blockhash
(I guess its would be slightly more data and if that is a problem, maybe something with the height could work)
In case of a pruned peer, if the block on disk is not available, it could fetch the block from other peers and locate the transaction either directly with the txid of with the CDiskTxPos::nTxOffset
.
If network speed is acceptable, a response within sections through getrawtransaction()
may still be possible.