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
  • 75,206
  • 34
  • 186
  • 622
Tail of Godzilla
  • 487
  • 1
  • 4
  • 12

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,212
  • 18
  • 24