<oembed><type>rich</type><version>1.0</version><author_name>npub19helcfnqgk2jrwzjex2aflq6jwfc8zd9uzzkwlgwhve7lykv23mq5zkvn4</author_name><author_url>https://nostr.ae/npub19helcfnqgk2jrwzjex2aflq6jwfc8zd9uzzkwlgwhve7lykv23mq5zkvn4</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2018-05-18&#xA;📝 Original message:Greg wrote:&#xA;&gt; What about also making input prevouts filter based on the scriptpubkey&#xA;being&#xA;&gt; _spent_?  Layering wise in the processing it&#39;s a bit ugly, but if you&#xA;&gt; validated the block you have the data needed.&#xA;&#xA;AFAICT, this would mean that in order for a new node to catch up the filter&#xA;index (index all historical blocks), they&#39;d either need to: build up a&#xA;utxo-set in memory during indexing, or would require a txindex in order to&#xA;look up the prev out&#39;s script. The first option increases the memory load&#xA;during indexing, and the second requires nodes to have a transaction index&#xA;(and would also add considerable I/O load). When proceeding from tip, this&#xA;doesn&#39;t add any additional load assuming that your synchronously index the&#xA;block as you validate it, otherwise the utxo set will already have been&#xA;updated (the spent scripts removed).&#xA;&#xA;I have a script running to compare the filter sizes assuming the regular&#xA;filter switches to include the prev out&#39;s script rather than the prev&#xA;outpoint itself. The script hasn&#39;t yet finished (due to the increased I/O&#xA;load to look up the scripts when indexing), but I&#39;ll report back once it&#39;s&#xA;finished.&#xA;&#xA;-- Laolu&#xA;&#xA;&#xA;On Thu, May 17, 2018 at 9:37 AM Gregory Maxwell via bitcoin-dev &lt;&#xA;bitcoin-dev at lists.linuxfoundation.org&gt; wrote:&#xA;&#xA;&gt; On Thu, May 17, 2018 at 3:25 PM, Matt Corallo via bitcoin-dev&#xA;&gt; &lt;bitcoin-dev at lists.linuxfoundation.org&gt; wrote:&#xA;&gt; &gt; I believe (1) could be skipped entirely - there is almost no reason why&#xA;&gt; &gt; you&#39;d not be able to filter for, eg, the set of output scripts in a&#xA;&gt; &gt; transaction you know about&#xA;&gt;&#xA;&gt; I think this is convincing for the txids themselves.&#xA;&gt;&#xA;&gt; What about also making input prevouts filter based on the scriptpubkey&#xA;&gt; being _spent_?  Layering wise in the processing it&#39;s a bit ugly, but&#xA;&gt; if you validated the block you have the data needed.&#xA;&gt;&#xA;&gt; This would eliminate the multiple data type mixing entirely.&#xA;&gt; _______________________________________________&#xA;&gt; bitcoin-dev mailing list&#xA;&gt; bitcoin-dev at lists.linuxfoundation.org&#xA;&gt; https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev&#xA;&gt;&#xA;-------------- next part --------------&#xA;An HTML attachment was scrubbed...&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20180518/228dc08e/attachment.html&gt;</html></oembed>