<oembed><type>rich</type><version>1.0</version><author_name>npub1f2nvlx49er5c7sqa43src6ssyp6snd4qwvtkwm5avc2l84cs84esecrwet</author_name><author_url>https://nostr.ae/npub1f2nvlx49er5c7sqa43src6ssyp6snd4qwvtkwm5avc2l84cs84esecrwet</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2018-05-23&#xA;📝 Original message:Any chance you could add a graph of input-scripts  (instead of input outpoints)?&#xA;&#xA;On Wed, May 23, 2018 at 7:38 AM, Jim Posen via bitcoin-dev&#xA;&lt;bitcoin-dev at lists.linuxfoundation.org&gt; wrote:&#xA;&gt; So I checked filter sizes (as a proportion of block size) for each of the&#xA;&gt; sub-filters. The graph is attached.&#xA;&gt;&#xA;&gt; As interpretation, the first ~120,000 blocks are so small that the&#xA;&gt; Golomb-Rice coding can&#39;t compress the filters that well, which is why the&#xA;&gt; filter sizes are so high proportional to the block size. Except for the&#xA;&gt; input filter, because the coinbase input is skipped, so many of them have 0&#xA;&gt; elements. But after block 120,000 or so, the filter compression converges&#xA;&gt; pretty quickly to near the optimal value. The encouraging thing here is that&#xA;&gt; if you look at the ratio of the combined size of the separated filters vs&#xA;&gt; the size of a filter containing all of them (currently known as the basic&#xA;&gt; filter), they are pretty much the same size. The mean of the ratio between&#xA;&gt; them after block 150,000 is 99.4%. So basically, not much compression&#xA;&gt; efficiently is lost by separating the basic filter into sub-filters.&#xA;&gt;&#xA;&gt; On Tue, May 22, 2018 at 5:42 PM, Jim Posen &lt;jim.posen at gmail.com&gt; wrote:&#xA;&gt;&gt;&gt;&#xA;&gt;&gt;&gt; My suggestion was to advertise a bitfield for each filter type the node&#xA;&gt;&gt;&gt; serves,&#xA;&gt;&gt;&gt; where the bitfield indicates what elements are part of the filters. This&#xA;&gt;&gt;&gt; essentially&#xA;&gt;&gt;&gt; removes the notion of decided filter types and instead leaves the&#xA;&gt;&gt;&gt; decision to&#xA;&gt;&gt;&gt; full-nodes.&#xA;&gt;&gt;&#xA;&gt;&gt;&#xA;&gt;&gt; I think it makes more sense to construct entirely separate filters for the&#xA;&gt;&gt; different types of elements and allow clients to download only the ones they&#xA;&gt;&gt; care about. If there are enough elements per filter, the compression ratio&#xA;&gt;&gt; shouldn&#39;t be much worse by splitting them up. This prevents the exponential&#xA;&gt;&gt; blowup in the number of filters that you mention, Johan, and it works nicely&#xA;&gt;&gt; with service bits for advertising different filter types independently.&#xA;&gt;&gt;&#xA;&gt;&gt; So if we created three separate filter types, one for output scripts, one&#xA;&gt;&gt; for input outpoints, and one for TXIDs, each signaled with a separate&#xA;&gt;&gt; service bit, are people good with that? Or do you think there shouldn&#39;t be a&#xA;&gt;&gt; TXID filter at all, Matt? I didn&#39;t include the option of a prev output&#xA;&gt;&gt; script filter or rolling that into the block output script filter because it&#xA;&gt;&gt; changes the security model (cannot be proven to be correct/incorrect&#xA;&gt;&gt; succinctly).&#xA;&gt;&gt;&#xA;&gt;&gt; Then there&#39;s the question of whether to separate or combine the headers.&#xA;&gt;&gt; I&#39;d lean towards keeping them separate because it&#39;s simpler that way.&#xA;&gt;&#xA;&gt;&#xA;&gt;&#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;</html></oembed>