Here's a random thought that someone on nostr will likely know the answer to
1. Why is the difficulty set to be adjusted (approximately) every two weeks?
2. Why not reset at the end of each day?
#asknostr
Here's a random thought that someone on nostr will likely know the answer to
1. Why is the difficulty set to be adjusted (approximately) every two weeks?
2. Why not reset at the end of each day?
#asknostr
Its set to 2016 block which is appx 2 weeks. Slow and steady adjustment reduces the ability to have larger incremental changes per time.
Its to measure the average block time more accurately, so the difficulty can be directed toward 10 minutes. 2016 * 10 minutes is also exactly a fortnight (14 days), which is a tongue-in-cheek joke referring to "arbitrariness" of the duration much like the 21 million number.
I think Satoshi wanted to use the 2016 number as an Easter egg to the US 6102 executive order. Also, it’s enough time to get an accurate average of block times. Daily would probably be much more volatile as a few quick or slow blocks could throw the average time way off.
I think even a week worth of blocks would have been enough duration to get a decent average, and keep the adjustment from being thrown off by a few longer block times, or really short ones, but a day definitely would be too short a time. So, the need for a smoothed out average explains why the adjustment doesn't happen daily, and the fact that 2016 is 6102 backwards explains why it was set at every 2016 blocks specifically.
nevent1qvzqqqqqqypzqquxdpn0xlh4zqw9k3patfqml9nnndqkyd9e642sfxzlycj5279pqy88wumn8ghj7mn0wvhxcmmv9uq3zamnwvaz7tmwdaehgu3wd3skuep0qqsxe9ve90hksmk0quhm75g8p9f7dxjcvarvq48v48rpkg2zml8fnuc386mau