{"type":"rich","version":"1.0","author_name":"npub10f96gqrsu4qpygfgvuvzce47aavjvql703egfde0l2hua8dzpszs67ej47","author_url":"https://nostr.ae/npub10f96gqrsu4qpygfgvuvzce47aavjvql703egfde0l2hua8dzpszs67ej47","provider_name":"njump","provider_url":"https://nostr.ae","html":"📅 Original date posted:2015-05-10\n📝 Original message:Le 08/05/2015 22:33, Mark Friedenbach a écrit :\n\n\u003e   * For each block, the miner is allowed to select a different difficulty\n\u003e (nBits) within a certain range, e.g. +/- 25% of the expected difficulty,\n\u003e and this miner-selected difficulty is used for the proof of work check. In\n\u003e addition to adjusting the hashcash target, selecting a different difficulty\n\u003e also raises or lowers the maximum block size for that block by a function\n\u003e of the difference in difficulty. So increasing the difficulty of the block\n\u003e by an additional 25% raises the block limit for that block from 100% of the\n\u003e current limit to 125%, and lowering the difficulty by 10% would also lower\n\u003e the maximum block size for that block from 100% to 90% of the current\n\u003e limit. For simplicity I will assume a linear identity transform as the\n\u003e function, but a quadratic or other function with compounding marginal cost\n\u003e may be preferred.\n\u003e \n\nSorry but I fail to see how a linear identity transform between block\nsize and difficulty would work.\n\nThe miner's reward for finding a block is the sum of subsidy and fees:\n\n R = S + F\n\nThe probability that the miner will find a block over a time interval is\ninversely proportional to the difficulty D:\n\n P = K / D\n\nwhere K is a constant that depends on the miner's hashrate. The expected\nreward of the miner is:\n\n E = P * R\n\nConsider that the miner chooses a new difficulty:\n\n D' = D(1 + x).\n\nWith a linear identity transform between block size and difficulty, the\nminer will be allowed to collect fees from a block of size: S'=S(1+x)\n\nIn the best case, collected will be proportional to block size:\n\n F' = F(1+x)\n\nThus we get:\n\n E' = P' * R' = K/(D(1+x)) * (S + F(1+x))\n\n E' = E - x/(1+x) * S * K / D\n\nSo with this linear identity transform, increasing block size never\nincreases the miners gain. As long as the subsidy exists, the best\nstrategy for miners is to reduce block size (i.e. to choose x\u003c0)."}
