News for hackers. Stuff that matters.
Re:Bitcoin From Scratch – Part 1 by johnpaulkiser on Saturday July 04, 2020 @04:04AM (#23730892)
Each node independently comes to the new difficulty on their own in an entirely deterministic way.

After 2 weeks there should be 2016 blocks mined, 1 block every 10 minutes. After each 2 week period every node recalculates the new difficulty based on the actual number of blocks mined in the last 2 weeks. If the actual number of blocks produced was 25% higher than the target of 2016, then simply increase the difficulty by 25%.

Re:Bitcoin From Scratch – Part 1 by martinko on Saturday July 04, 2020 @04:08AM (#23730912)
Thanks. Given that this relies on subjective timestamps, is this really entirely deterministic? I can imagine that one node counted 2014 blocks in the past two weeks, another 2015. What happens in such cases?
Re:Bitcoin From Scratch – Part 1 by tromp on Saturday July 04, 2020 @04:17AM (#23730946)
Difficulty only changes at heights that are a multiple of 2016.