Author: Pieter Wuille 2018-05-19 03:06:10
Published on: 2018-05-19T03:06:10+00:00
In a bitcoin-dev email thread, Greg suggested making input prevouts filter based on the scriptpubkey being spent to enhance processing. However, Olaoluwa Osuntokun pointed out that for new nodes to catch up the filter index, they would need to build up a utxo-set in memory during indexing or require a txindex to look up the prev out's script. The former increases the memory load during indexing while the latter adds considerable I/O load. Pieter then chimed in and mentioned that this isn't necessary as all the data needed for such a filter is in the block + undo files, which contain the scriptPubKeys of the outputs being spent. He has a script running to compare the filter sizes assuming the regular filter switches to include the prev out's script rather than the prev outpoint itself. However, the script hasn't yet finished due to the increased I/O load to look up the scripts when indexing.
Updated on: 2023-05-20T08:29:29.927542+00:00