<oembed><type>rich</type><version>1.0</version><author_name>npub1j3u42vq63qzs2nyddgkf4s4t7pa85x855vas54e6yauxsvpf2wcsacwg9h</author_name><author_url>https://nostr.ae/npub1j3u42vq63qzs2nyddgkf4s4t7pa85x855vas54e6yauxsvpf2wcsacwg9h</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2016-12-10&#xA;📝 Original message:t. khan via bitcoin-dev wrote:&#xA;&gt; BIP Proposal - Managing Bitcoin’s block size the same way we do&#xA;&gt; difficulty (aka Block75)&#xA;&gt; &#xA;&gt; The every two-week adjustment of difficulty has proven to be a&#xA;&gt; reasonably effective and predictable way of managing how quickly blocks&#xA;&gt; are mined. Bitcoin needs a reasonably effective and predictable way of&#xA;&gt; managing the maximum block size.&#xA;&gt; &#xA;&gt; It’s clear at this point that human beings should not be involved in the&#xA;&gt; determination of max block size, just as they’re not involved in&#xA;&gt; deciding the difficulty.&#xA;&gt; &#xA;&gt; Instead of setting an arbitrary max block size (1MB, 2MB, 8MB, etc.) or&#xA;&gt; passing the decision to miners/pool operators, the max block size should&#xA;&gt; be adjusted every two weeks (2016 blocks) using a system similar to how&#xA;&gt; difficulty is calculated.&#xA;&gt; &#xA;&gt; Put another way: let’s stop thinking about what the max block size&#xA;&gt; should be and start thinking about how full we want the average block to&#xA;&gt; be regardless of size. Over the last year, we’ve had averages of 75% or&#xA;&gt; higher, so aiming for 75% full seems reasonable, hence naming this&#xA;&gt; concept ‘Block75’.&#xA;&gt; &#xA;&gt; The target capacity over 2016 blocks would be 75%. If the last 2016&#xA;&gt; blocks are more than 75% full, add the difference to the max block size.&#xA;&gt; Like this:&#xA;&gt; &#xA;&gt; MAX_BLOCK_BASE_SIZE = 1000000&#xA;&gt; TARGET_CAPACITY = 750000&#xA;&gt; AVERAGE_OVER_CAP = average block size of last 2016 blocks minus&#xA;&gt; TARGET_CAPACITY&#xA;&gt; &#xA;&gt; To check if a block is valid, ≤ (MAX_BLOCK_BASE_SIZE + AVERAGE_OVER_CAP)&#xA;&gt; &#xA;&gt; For example, if the last 2016 blocks are 85% full (average block is 850&#xA;&gt; KB), add 10% to the max block size. The new max block size would be&#xA;&gt; 1,100 KB until the next 2016 blocks are mined, then reset and&#xA;&gt; recalculate. The 1,000,000 byte limit that exists currently would&#xA;&gt; remain, but would effectively be the minimum max block size. &#xA;&gt; &#xA;&gt; Another two weeks goes by, the last 2016 blocks are again 85% full, but&#xA;&gt; now that means they average 935 KB out of the 1,100 KB max block size.&#xA;&gt; This is 93.5% of the 1,000,000 byte limit, so 18.5% would be added to&#xA;&gt; that to make the new max block size of 1,185 KB.&#xA;&gt; &#xA;&gt; Another two weeks passes. This time, the average block is 1,050 KB. The&#xA;&gt; new max block size is calculated to 1,300 KB (as blocks were 105% full,&#xA;&gt; minus the 75% capacity target, so 30% added to max block size).&#xA;&gt; &#xA;&gt; Repeat every 2016 blocks, forever.&#xA;&gt; &#xA;&gt; If Block75 had been applied at the difficulty adjustment on November&#xA;&gt; 18th, the max block size would have been 1,080KB, as the average block&#xA;&gt; during that period was 83% full, so 8% is added to the 1,000KB limit.&#xA;&gt; The current size, after the December 2nd adjustment would be 1,150K.&#xA;&gt; &#xA;&gt; Block75 would allow the max block size to grow (or shrink) in response&#xA;&gt; to transaction volume, and does so predictably, reasonably quickly, and&#xA;&gt; in a method that prevents wild swings in block size or transaction fees.&#xA;&gt; It attempts to keep blocks at 75% total capacity over each two week&#xA;&gt; period, the same way difficulty tries to keep blocks mined every ten&#xA;&gt; minutes. It also keeps blocks as small as possible.&#xA;&gt; &#xA;&gt; Thoughts?&#xA;&gt; &#xA;&gt; -t.k.&#xA;&gt; &#xA;&#xA;I like the idea. It is good wrt growing the max. block size&#xA;automatically without human action, but the main problem (or question)&#xA;is not how to grow this number, it is what number can the network&#xA;handle, considering both miners and users. While disk space requirements&#xA;might not be a big problem, block propagation time is. The time required&#xA;for a block to propagate in the network (or at least to all the miners)&#xA;is directly dependent of its size.  If blocks take too much time to&#xA;propagate in the network, the orphan rate will increase in unpredictable&#xA;ways. For example if the internet speed in China is worse than in&#xA;Europe, and miners in China have more than 50% of the hashing power,&#xA;blocks mined by European miners might get orphaned.&#xA;&#xA;The system as described can also be gamed, by filling the network with&#xA;transactions. Miners have the monetary interest to include as many&#xA;transactions as possible in a block in order to collect the fees.&#xA;Regardless how you think about it, there has to be a maximum block size&#xA;that the network will allow as a consensus rule. Increasing it&#xA;dynamically based on transaction volume will reach a point where the&#xA;number got big enough that it broke things. Bitcoin, because its&#xA;fundamental design, can scale by using offchain solutions.&#xA;&#xA;-------------- next part --------------&#xA;A non-text attachment was scrubbed...&#xA;Name: signature.asc&#xA;Type: application/pgp-signature&#xA;Size: 488 bytes&#xA;Desc: OpenPGP digital signature&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20161210/c231038d/attachment.sig&gt;</html></oembed>