3

I know that the Bitcoin difficulty is recomputed every 2016 blocks (about two weeks).

But who is responsible for this job and how is the new value announced to all miners. Does every miners do the computation or is there a specific entity of the network do it?

Murch
  • 71,155
  • 33
  • 180
  • 600
Tail of Godzilla
  • 467
  • 1
  • 4
  • 12
  • 1
    related: [How do nodes come to a consensus on difficulty?](http://bitcoin.stackexchange.com/q/13223/5406); [How is the difficulty of bitcoin mining propagated?](http://bitcoin.stackexchange.com/q/23411/5406) – Murch Jun 24 '15 at 16:16

1 Answers1

5

All nodes and all clients have this logic hardcoded into them. So in that sense, everybody is responsible for understanding that every 2016 blocks the difficulty changes.

The calculation that is hardcoded into each client is described here: https://en.bitcoin.it/wiki/Difficulty#What_is_the_formula_for_difficulty.3F

So it's not a piece of information that is announced or broadcast. Since each node knows about every block that appears in the network, it can calculate on its own the difficulty, without the need of a third-party.

Luca Matteis
  • 5,182
  • 17
  • 24