<oembed><type>rich</type><version>1.0</version><author_name>npub13t8gempry5dh8dkjw2m9wc0j4wu5kxlk9jxtwf24350fx2gtlqksmyxl7q</author_name><author_url>https://nostr.ae/npub13t8gempry5dh8dkjw2m9wc0j4wu5kxlk9jxtwf24350fx2gtlqksmyxl7q</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2018-05-18&#xA;📝 Original message:Another parameter which heavily affects filter size is the false positive&#xA;rate which is empirically set&#xA;&lt;https://github.com/bitcoin/bips/blob/master/bip-0158.mediawiki#construction&gt;&#xA;to 2^-20&#xA;The BIP recall some go code&#xA;&lt;https://github.com/Roasbeef/bips/blob/83b83c78e189be898573e0bfe936dd0c9b99ecb9/gcs_light_client/gentestvectors.go&gt;&#xA;for how the parameter has been selected which I can hardly understand and&#xA;run, it&#39;s totally my fault but if possible I would really like more details&#xA;on the process, like charts and explanations (for example, which is the&#xA;number of elements to search for which the filter has been optimized for?)&#xA;&#xA;Instinctively I feel 2^-20 is super low and choosing a lot higher alpha&#xA;will shrink the total filter size by gigabytes at the cost of having to&#xA;wastefully download just some megabytes of blocks.&#xA;&#xA;&#xA;2018-05-17 18:36 GMT+02:00 Gregory Maxwell via bitcoin-dev &lt;&#xA;bitcoin-dev at lists.linuxfoundation.org&gt;:&#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;&#xA;&#xA;&#xA;-- &#xA;Riccardo Casatta - @RCasatta &lt;https://twitter.com/RCasatta&gt;&#xA;-------------- next part --------------&#xA;An HTML attachment was scrubbed...&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20180518/fe07e012/attachment.html&gt;</html></oembed>