Title: Dynamic MAX_BLOCK_SIZE using SMA or EMA + 1 StdDev Post by: osoverflow on August 24, 2015, 08:39:20 PM Hello! I want to suggest to set an automatic MAX_BLOCK_SIZE using Simple Moving Average or Exponential Moving Average of the latest 1440 blocks (10 days) plus 1 standard deviation.
With the minimum value of it equal to 1,000,000 bytes. This way it can grow indefinitely but it will adapt to the market demands and the adaptation is not so fast to be used for spam, but fast enough to adapt to the moves of the market. For example, if the latest 1440 block's sizes average is let say 900KB, and the standard deviation is +/- 200KB, then the resulting MAX_BLOCK_SIZE will be 900KB+200KB=1100KB One standard deviation addition to the average should be enough to cover about 85% the blocks, and because the average is dynamic, if the block sizes starts growing, then the average also grow, and in less than 10 days about 85% of new bigger blocks will fit inside the max_block_size. The 1 standard deviation could be 2 devs that covers 98% of all the blocks. EMA is faster in response than SMA, but more difficult to calculate, and I don't think the bitcoin market is moving and will be moving as fast as it left SMA behind. |